X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FaddRFCandPMIDInterwiki.php;h=9bab37ca3e9437602da876f9da82f43a644bff77;hb=9a8a33bd0f18272ef8e865c96c89cc5785ff5c2c;hp=9740ef2d7970cde1787ca9a0b6c7421edf379b8a;hpb=531ed101ccd14dc7e2cf2858a67b2523ef6a79ff;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/addRFCandPMIDInterwiki.php b/maintenance/addRFCandPMIDInterwiki.php index 9740ef2d79..9bab37ca3e 100644 --- a/maintenance/addRFCandPMIDInterwiki.php +++ b/maintenance/addRFCandPMIDInterwiki.php @@ -28,7 +28,7 @@ require_once __DIR__ . '/Maintenance.php'; * * @since 1.28 */ -class AddRFCAndPMIDInterwiki extends LoggedUpdateMaintenance { +class AddRFCandPMIDInterwiki extends LoggedUpdateMaintenance { public function __construct() { parent::__construct(); $this->addDescription( 'Add RFC and PMID to the interwiki database table' ); @@ -39,7 +39,7 @@ class AddRFCAndPMIDInterwiki extends LoggedUpdateMaintenance { } protected function updateSkippedMessage() { - return 'RFC and PMID already added to interwiki database table'; + return 'RFC and PMID already added to interwiki database table.'; } protected function doDBUpdates() { @@ -63,7 +63,10 @@ class AddRFCAndPMIDInterwiki extends LoggedUpdateMaintenance { [ 'iw_prefix' ], [ 'iw_prefix' => 'rfc', - 'iw_url' => 'https://tools.ietf.org/html/rfc$1' + 'iw_url' => 'https://tools.ietf.org/html/rfc$1', + 'iw_api' => '', + 'iw_wikiid' => '', + 'iw_local' => 0, ], __METHOD__ ); @@ -74,6 +77,9 @@ class AddRFCAndPMIDInterwiki extends LoggedUpdateMaintenance { [ 'iw_prefix' => 'pmid', 'iw_url' => 'https://www.ncbi.nlm.nih.gov/pubmed/$1?dopt=Abstract', + 'iw_api' => '', + 'iw_wikiid' => '', + 'iw_local' => 0, ], __METHOD__, // If there's already a pmid interwiki link, don't @@ -84,3 +90,6 @@ class AddRFCAndPMIDInterwiki extends LoggedUpdateMaintenance { return true; } } + +$maintClass = AddRFCandPMIDInterwiki::class; +require_once RUN_MAINTENANCE_IF_MAIN;