X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FaddRFCandPMIDInterwiki.php;h=b21bfbb7e20149582b8128a915a464b22d449912;hb=dceb5a9836ffe5a3840dfa2e54069c28936acc97;hp=9740ef2d7970cde1787ca9a0b6c7421edf379b8a;hpb=9de4779e206628d8c7c9ae76785bfe825b5267d5;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/addRFCandPMIDInterwiki.php b/maintenance/addRFCandPMIDInterwiki.php index 9740ef2d79..b21bfbb7e2 100644 --- a/maintenance/addRFCandPMIDInterwiki.php +++ b/maintenance/addRFCandPMIDInterwiki.php @@ -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'; +require_once RUN_MAINTENANCE_IF_MAIN;