Merge "Remove dot from summary used by fixDoubleRedirects.php"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 23 Jan 2018 20:58:50 +0000 (20:58 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 23 Jan 2018 20:58:50 +0000 (20:58 +0000)
225 files changed:
autoload.php
includes/MediaWikiServices.php
includes/ServiceWiring.php
includes/api/i18n/he.json
includes/collation/AbkhazUppercaseCollation.php [new file with mode: 0644]
includes/collation/Collation.php
includes/collation/CustomUppercaseCollation.php
includes/http/HttpRequestFactory.php [new file with mode: 0644]
includes/http/MWHttpRequest.php
includes/installer/i18n/he.json
includes/libs/rdbms/loadbalancer/LoadBalancer.php
includes/registration/ExtensionRegistry.php
languages/i18n/bho.json
languages/i18n/bs.json
languages/i18n/fa.json
languages/i18n/li.json
languages/i18n/lij.json
languages/i18n/lv.json
languages/i18n/sah.json
languages/i18n/skr-arab.json
languages/i18n/sr-ec.json
maintenance/7zip.inc
maintenance/Maintenance.php
maintenance/addRFCandPMIDInterwiki.php
maintenance/addSite.php
maintenance/attachLatest.php
maintenance/backup.inc
maintenance/benchmarks/bench_HTTP_HTTPS.php
maintenance/benchmarks/bench_Wikimedia_base_convert.php
maintenance/benchmarks/bench_delete_truncate.php
maintenance/benchmarks/bench_if_switch.php
maintenance/benchmarks/bench_strtr_str_replace.php
maintenance/benchmarks/bench_utf8_title_check.php
maintenance/benchmarks/bench_wfIsWindows.php
maintenance/benchmarks/benchmarkCSSMin.php
maintenance/benchmarks/benchmarkHooks.php
maintenance/benchmarks/benchmarkJSMinPlus.php
maintenance/benchmarks/benchmarkParse.php
maintenance/benchmarks/benchmarkPurge.php
maintenance/benchmarks/benchmarkTidy.php
maintenance/changePassword.php
maintenance/checkBadRedirects.php
maintenance/checkComposerLockUpToDate.php
maintenance/checkImages.php
maintenance/checkLess.php
maintenance/checkUsernames.php
maintenance/cleanupAncientTables.php
maintenance/cleanupBlocks.php
maintenance/cleanupCaps.php
maintenance/cleanupEmptyCategories.php
maintenance/cleanupImages.php
maintenance/cleanupInvalidDbKeys.php
maintenance/cleanupPreferences.php
maintenance/cleanupRemovedModules.php
maintenance/cleanupSpam.php
maintenance/cleanupTitles.php
maintenance/cleanupUploadStash.php
maintenance/cleanupUsersWithNoId.php
maintenance/cleanupWatchlist.php
maintenance/clearInterwikiCache.php
maintenance/commandLine.inc
maintenance/compareParserCache.php
maintenance/compareParsers.php
maintenance/convertExtensionToRegistration.php
maintenance/convertLinks.php
maintenance/convertUserOptions.php
maintenance/copyFileBackend.php
maintenance/copyJobQueue.php
maintenance/createAndPromote.php
maintenance/createCommonPasswordCdb.php
maintenance/deleteArchivedFiles.php
maintenance/deleteArchivedRevisions.php
maintenance/deleteBatch.php
maintenance/deleteDefaultMessages.php
maintenance/deleteEqualMessages.php
maintenance/deleteOldRevisions.php
maintenance/deleteOrphanedRevisions.php
maintenance/deleteSelfExternals.php
maintenance/doMaintenance.php
maintenance/dumpBackup.php
maintenance/dumpCategoriesAsRdf.php
maintenance/dumpIterator.php
maintenance/dumpLinks.php
maintenance/dumpTextPass.php
maintenance/dumpUploads.php
maintenance/edit.php
maintenance/eraseArchivedFile.php
maintenance/exportSites.php
maintenance/fetchText.php
maintenance/fileOpPerfTest.php
maintenance/findDeprecated.php
maintenance/findHooks.php
maintenance/findMissingFiles.php
maintenance/findOrphanedFiles.php
maintenance/fixDefaultJsonContentPages.php
maintenance/fixDoubleRedirects.php
maintenance/fixExtLinksProtocolRelative.php
maintenance/fixTimestamps.php
maintenance/fixUserRegistration.php
maintenance/formatInstallDoc.php
maintenance/generateJsonI18n.php
maintenance/generateSitemap.php
maintenance/getConfiguration.php
maintenance/getLagTimes.php
maintenance/getReplicaServer.php
maintenance/getText.php
maintenance/hhvm/makeRepo.php
maintenance/hhvm/run-server
maintenance/importDump.php
maintenance/importImages.php
maintenance/importSiteScripts.php
maintenance/importSites.php
maintenance/importTextFiles.php
maintenance/initEditCount.php
maintenance/initSiteStats.php
maintenance/initUserPreference.php
maintenance/install.php
maintenance/invalidateUserSessions.php
maintenance/jsparse.php
maintenance/lag.php
maintenance/language/alltrans.php
maintenance/language/date-formats.php
maintenance/language/digit2html.php
maintenance/language/dumpMessages.php
maintenance/language/generateCollationData.php
maintenance/language/generateNormalizerDataAr.php
maintenance/language/generateNormalizerDataMl.php
maintenance/language/langmemusage.php
maintenance/language/listVariants.php
maintenance/makeTestEdits.php
maintenance/manageJobs.php
maintenance/mctest.php
maintenance/mergeMessageFileList.php
maintenance/migrateArchiveText.php
maintenance/migrateComments.php
maintenance/migrateFileRepoLayout.php
maintenance/migrateUserGroup.php
maintenance/minify.php
maintenance/moveBatch.php
maintenance/mwdocgen.php
maintenance/namespaceDupes.php
maintenance/nukeNS.php
maintenance/nukePage.php
maintenance/oracle/alterSharedConstraints.php
maintenance/orphans.php
maintenance/pageExists.php
maintenance/parse.php
maintenance/patchSql.php
maintenance/populateBacklinkNamespace.php
maintenance/populateCategory.php
maintenance/populateContentModel.php
maintenance/populateFilearchiveSha1.php
maintenance/populateImageSha1.php
maintenance/populateIpChanges.php
maintenance/populateLogSearch.php
maintenance/populateLogUsertext.php
maintenance/populatePPSortKey.php
maintenance/populateParentId.php
maintenance/populateRecentChangesSource.php
maintenance/populateRevisionLength.php
maintenance/populateRevisionSha1.php
maintenance/preprocessDump.php
maintenance/protect.php
maintenance/pruneFileCache.php
maintenance/purgeChangedFiles.php
maintenance/purgeChangedPages.php
maintenance/purgeExpiredUserrights.php
maintenance/purgeList.php
maintenance/purgeModuleDeps.php
maintenance/purgeOldText.php
maintenance/purgePage.php
maintenance/purgeParserCache.php
maintenance/reassignEdits.php
maintenance/rebuildFileCache.php
maintenance/rebuildImages.php
maintenance/rebuildLocalisationCache.php
maintenance/rebuildSitesCache.php
maintenance/rebuildall.php
maintenance/rebuildmessages.php
maintenance/rebuildrecentchanges.php
maintenance/rebuildtextindex.php
maintenance/recountCategories.php
maintenance/refreshFileHeaders.php
maintenance/refreshImageMetadata.php
maintenance/refreshLinks.php
maintenance/removeInvalidEmails.php
maintenance/removeUnusedAccounts.php
maintenance/renameDbPrefix.php
maintenance/renderDump.php
maintenance/resetUserEmail.php
maintenance/resetUserTokens.php
maintenance/rollbackEdits.php
maintenance/runBatchedQuery.php
maintenance/runJobs.php
maintenance/shell.php
maintenance/showJobs.php
maintenance/showSiteStats.php
maintenance/sql.php
maintenance/sqlite.php
maintenance/storage/compressOld.php
maintenance/storage/dumpRev.php
maintenance/storage/fixT22757.php
maintenance/storage/orphanStats.php
maintenance/storage/recompressTracked.php
maintenance/storage/storageTypeStats.php
maintenance/storage/testCompression.php
maintenance/syncFileBackend.php
maintenance/tidyUpBug37714.php
maintenance/undelete.php
maintenance/update.php
maintenance/updateArticleCount.php
maintenance/updateCollation.php
maintenance/updateDoubleWidthSearch.php
maintenance/updateExtensionJsonSchema.php
maintenance/updateRestrictions.php
maintenance/updateSearchIndex.php
maintenance/updateSpecialPages.php
maintenance/userOptions.php
maintenance/validateRegistrationFile.php
maintenance/view.php
maintenance/wrapOldPasswords.php
tests/integration/includes/http/MWHttpRequestTestCase.php
tests/phpunit/includes/MediaWikiServicesTest.php
tests/phpunit/includes/collation/CustomUppercaseCollationTest.php
tests/phpunit/includes/registration/ExtensionRegistryTest.php

index 9e557e1..6fb2cc4 100644 (file)
@@ -6,6 +6,7 @@ global $wgAutoloadLocalClasses;
 $wgAutoloadLocalClasses = [
        'APCBagOStuff' => __DIR__ . '/includes/libs/objectcache/APCBagOStuff.php',
        'APCUBagOStuff' => __DIR__ . '/includes/libs/objectcache/APCUBagOStuff.php',
+       'AbkhazUppercaseCollation' => __DIR__ . '/includes/collation/AbkhazUppercaseCollation.php',
        'AbstractContent' => __DIR__ . '/includes/content/AbstractContent.php',
        'Action' => __DIR__ . '/includes/actions/Action.php',
        'ActiveUsersPager' => __DIR__ . '/includes/specials/pagers/ActiveUsersPager.php',
@@ -878,6 +879,7 @@ $wgAutoloadLocalClasses = [
        'MediaWiki\\EditPage\\TextboxBuilder' => __DIR__ . '/includes/editpage/TextboxBuilder.php',
        'MediaWiki\\Edit\\PreparedEdit' => __DIR__ . '/includes/edit/PreparedEdit.php',
        'MediaWiki\\HeaderCallback' => __DIR__ . '/includes/HeaderCallback.php',
+       'MediaWiki\\Http\\HttpRequestFactory' => __DIR__ . '/includes/http/HttpRequestFactory.php',
        'MediaWiki\\Interwiki\\ClassicInterwikiLookup' => __DIR__ . '/includes/interwiki/ClassicInterwikiLookup.php',
        'MediaWiki\\Interwiki\\InterwikiLookup' => __DIR__ . '/includes/interwiki/InterwikiLookup.php',
        'MediaWiki\\Interwiki\\InterwikiLookupAdapter' => __DIR__ . '/includes/interwiki/InterwikiLookupAdapter.php',
index 5b173cd..00767c7 100644 (file)
@@ -10,6 +10,7 @@ use GenderCache;
 use GlobalVarConfig;
 use Hooks;
 use IBufferingStatsdDataFactory;
+use MediaWiki\Http\HttpRequestFactory;
 use MediaWiki\Preferences\PreferencesFactory;
 use MediaWiki\Shell\CommandFactory;
 use MediaWiki\Storage\BlobStore;
@@ -734,6 +735,14 @@ class MediaWikiServices extends ServiceContainer {
                return $this->getService( 'PreferencesFactory' );
        }
 
+       /**
+        * @since 1.31
+        * @return HttpRequestFactory
+        */
+       public function getHttpRequestFactory() {
+               return $this->getService( 'HttpRequestFactory' );
+       }
+
        ///////////////////////////////////////////////////////////////////////////
        // NOTE: When adding a service getter here, don't forget to add a test
        // case for it in MediaWikiServicesTest::provideGetters() and in
index 79e5b84..dab3b5c 100644 (file)
@@ -508,6 +508,10 @@ return [
                return new DefaultPreferencesFactory( $config, $wgContLang, $authManager, $linkRenderer );
        },
 
+       'HttpRequestFactory' => function ( MediaWikiServices $services ) {
+               return new \MediaWiki\Http\HttpRequestFactory();
+       },
+
        ///////////////////////////////////////////////////////////////////////////
        // NOTE: When adding a service here, don't forget to add a getter function
        // in the MediaWikiServices class. The convenience getter should just call
index 109ea0e..2e68946 100644 (file)
        "api-help-param-direction": "באיזה כיוון למנות:\n;newer:לרשום את הישנים ביותר בהתחלה. לתשומת לבך: $1start חייב להיות לפני $1end.\n;older:לרשום את החדשים ביותר בהתחלה (בררת מחדל). לתשומת לבך: $1start חייב להיות אחרי $1end.",
        "api-help-param-continue": "כשיש עוד תוצאות, להשתמש בזה בשביל להמשיך.",
        "api-help-param-no-description": "<span class=\"apihelp-empty\">(ללא תיאור)</span>",
+       "api-help-param-maxbytes": "לא יכול להיות ארוך {{PLURAL:$1|מבית אחד|מ־$1 בתים}}.",
+       "api-help-param-maxchars": "לא יכול להיות ארוך {{PLURAL:$1|מתו אחד|מ־$1 תווים}}.",
        "api-help-examples": "{{PLURAL:$1|דוגמה|דוגמאות}}:",
        "api-help-permissions": "{{PLURAL:$1|הרשאה|הרשאות}}:",
        "api-help-permissions-granted-to": "{{PLURAL:$1|הוענק ל|הוענקו ל}}: $2",
diff --git a/includes/collation/AbkhazUppercaseCollation.php b/includes/collation/AbkhazUppercaseCollation.php
new file mode 100644 (file)
index 0000000..e0ea237
--- /dev/null
@@ -0,0 +1,93 @@
+<?php
+/**
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @since 1.31
+ *
+ * @file
+ */
+
+class AbkhazUppercaseCollation extends CustomUppercaseCollation {
+
+       public function __construct() {
+               parent::__construct( [
+                       'А',
+                       'Б',
+                       'В',
+                       'Г',
+                       'Гь',
+                       'Гә',
+                       'Ҕ',
+                       'Ҕь',
+                       'Ҕә',
+                       'Д',
+                       'Дә',
+                       'Е',
+                       'Ж',
+                       'Жь',
+                       'Жә',
+                       'З',
+                       'Ӡ',
+                       'Ӡә',
+                       'И',
+                       'К',
+                       'Кь',
+                       'Кә',
+                       'Қ',
+                       'Қь',
+                       'Қә',
+                       'Ҟ',
+                       'Ҟь',
+                       'Ҟә',
+                       'Л',
+                       'М',
+                       'Н',
+                       'О',
+                       'П',
+                       'Ҧ',
+                       'Р',
+                       'С',
+                       'Т',
+                       'Тә',
+                       'Ҭ',
+                       'Ҭә',
+                       'У',
+                       'Ф',
+                       'Х',
+                       'Хь',
+                       'Хә',
+                       'Ҳ',
+                       'Ҳә',
+                       'Ц',
+                       'Цә',
+                       'Ҵ',
+                       'Ҵә',
+                       'Ч',
+                       'Ҷ',
+                       'Ҽ',
+                       'Ҿ',
+                       'Ш',
+                       'Шь',
+                       'Шә',
+                       'Ы',
+                       'Ҩ',
+                       'Џ',
+                       'Џь',
+                       'ь',
+                       'ә',
+               ], Language::factory( 'ab' ) );
+       }
+}
index 7171a21..30cae5a 100644 (file)
@@ -65,6 +65,8 @@ abstract class Collation {
                                return new CollationEt;
                        case 'xx-uca-fa':
                                return new CollationFa;
+                       case 'uppercase-ab':
+                               return new AbkhazUppercaseCollation;
                        case 'uppercase-ba':
                                return new BashkirUppercaseCollation;
                        case 'uppercase-se':
index 301972d..170d5c2 100644 (file)
@@ -32,6 +32,7 @@
  * conflicts with other people using private use area)
  *
  * This does not support fancy things like secondary differences, etc.
+ * (It supports digraphs, trigraphs etc. though.)
  *
  * It is expected most people will subclass this and just override the
  * constructor to hard-code an alphabet.
@@ -45,25 +46,30 @@ class CustomUppercaseCollation extends NumericUppercaseCollation {
        private $puaSubset;
 
        /**
-        * @note This assumes $alphabet does not contain U+F3000-U+F303F
+        * @note This assumes $alphabet does not contain U+F3000-U+F3FFF
         *
         * @param array $alphabet Sorted array of uppercase characters.
         * @param Language $lang What language for number sorting.
         */
        public function __construct( array $alphabet, Language $lang ) {
-               // It'd be trivial to extend this past 64, you'd just
-               // need a bit of bit-fiddling. Doesn't seem necessary right
-               // now.
-               if ( count( $alphabet ) < 1 || count( $alphabet ) >= 64 ) {
-                       throw new UnexpectedValueException( "Alphabet must be < 64 items" );
+               if ( count( $alphabet ) < 1 || count( $alphabet ) >= 4096 ) {
+                       throw new UnexpectedValueException( "Alphabet must be < 4096 items" );
                }
-               $this->alphabet = $alphabet;
+               $this->firstLetters = $alphabet;
+               // For digraphs, only the first letter is capitalized in input
+               $this->alphabet = array_map( [ $lang, 'uc' ], $alphabet );
 
                $this->puaSubset = [];
                $len = count( $alphabet );
                for ( $i = 0; $i < $len; $i++ ) {
-                       $this->puaSubset[] = "\xF3\xB3\x80" . chr( $i + 128 );
+                       $this->puaSubset[] = "\xF3\xB3" . chr( floor( $i / 64 ) + 128 ) . chr( ( $i % 64 ) + 128 );
                }
+
+               // Sort these arrays so that any trigraphs, digraphs etc. are first
+               // (and they get replaced first in convertToPua()).
+               $lengths = array_map( 'mb_strlen', $this->alphabet );
+               array_multisort( $lengths, SORT_DESC, $this->firstLetters, $this->alphabet, $this->puaSubset );
+
                parent::__construct( $lang );
        }
 
@@ -76,12 +82,17 @@ class CustomUppercaseCollation extends NumericUppercaseCollation {
        }
 
        public function getFirstLetter( $string ) {
-               // In case a title has a PUA code in it, make it sort
-               // under the header for the character it would replace
-               // to avoid inconsistent behaviour. This class mostly
-               // assumes that people will not use PUA codes.
-               return parent::getFirstLetter(
-                       str_replace( $this->puaSubset, $this->alphabet, $string )
-               );
+               $sortkey = $this->getSortKey( $string );
+
+               // In case a title begins with a character from our alphabet, return the corresponding
+               // first-letter. (This also happens if the title has a corresponding PUA code in it, to avoid
+               // inconsistent behaviour. This class mostly assumes that people will not use PUA codes.)
+               $index = array_search( substr( $sortkey, 0, 4 ), $this->puaSubset );
+               if ( $index !== false ) {
+                       return $this->firstLetters[ $index ];
+               }
+
+               // String begins with a character outside of our alphabet, fall back
+               return parent::getFirstLetter( $string );
        }
 }
diff --git a/includes/http/HttpRequestFactory.php b/includes/http/HttpRequestFactory.php
new file mode 100644 (file)
index 0000000..80f9b68
--- /dev/null
@@ -0,0 +1,82 @@
+<?php
+/**
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
+ */
+namespace MediaWiki\Http;
+
+use CurlHttpRequest;
+use DomainException;
+use Http;
+use MediaWiki\Logger\LoggerFactory;
+use MWHttpRequest;
+use PhpHttpRequest;
+use Profiler;
+
+/**
+ * Factory creating MWHttpRequest objects.
+ */
+class HttpRequestFactory {
+
+       /**
+        * Generate a new MWHttpRequest object
+        * @param string $url Url to use
+        * @param array $options (optional) extra params to pass (see Http::request())
+        * @param string $caller The method making this request, for profiling
+        * @throws DomainException
+        * @return MWHttpRequest
+        * @see MWHttpRequest::__construct
+        */
+       public function create( $url, array $options = [], $caller = __METHOD__ ) {
+               if ( !Http::$httpEngine ) {
+                       Http::$httpEngine = function_exists( 'curl_init' ) ? 'curl' : 'php';
+               } elseif ( Http::$httpEngine == 'curl' && !function_exists( 'curl_init' ) ) {
+                       throw new DomainException( __METHOD__ . ': curl (http://php.net/curl) is not installed, but' .
+                          ' Http::$httpEngine is set to "curl"' );
+               }
+
+               if ( !isset( $options['logger'] ) ) {
+                       $options['logger'] = LoggerFactory::getInstance( 'http' );
+               }
+
+               switch ( Http::$httpEngine ) {
+                       case 'curl':
+                               return new CurlHttpRequest( $url, $options, $caller, Profiler::instance() );
+                       case 'php':
+                               if ( !wfIniGetBool( 'allow_url_fopen' ) ) {
+                                       throw new DomainException( __METHOD__ . ': allow_url_fopen ' .
+                                          'needs to be enabled for pure PHP http requests to ' .
+                                          'work. If possible, curl should be used instead. See ' .
+                                          'http://php.net/curl.'
+                                       );
+                               }
+                               return new PhpHttpRequest( $url, $options, $caller, Profiler::instance() );
+                       default:
+                               throw new DomainException( __METHOD__ . ': The setting of Http::$httpEngine is not valid.' );
+               }
+       }
+
+       /**
+        * Simple function to test if we can make any sort of requests at all, using
+        * cURL or fopen()
+        * @return bool
+        */
+       public function canMakeRequests() {
+               return function_exists( 'curl_init' ) || wfIniGetBool( 'allow_url_fopen' );
+       }
+
+}
index 0f0118c..fff72ec 100644 (file)
@@ -18,7 +18,6 @@
  * @file
  */
 
-use MediaWiki\Logger\LoggerFactory;
 use Psr\Log\LoggerInterface;
 use Psr\Log\LoggerAwareInterface;
 use Psr\Log\NullLogger;
@@ -30,7 +29,7 @@ use Psr\Log\NullLogger;
  * Renamed from HttpRequest to MWHttpRequest to avoid conflict with
  * PHP's HTTP extension.
  */
-class MWHttpRequest implements LoggerAwareInterface {
+abstract class MWHttpRequest implements LoggerAwareInterface {
        const SUPPORTS_FILE_POSTS = false;
 
        /**
@@ -90,8 +89,8 @@ class MWHttpRequest implements LoggerAwareInterface {
         * @param string $caller The method making this request, for profiling
         * @param Profiler $profiler An instance of the profiler for profiling, or null
         */
-       protected function __construct(
-               $url, $options = [], $caller = __METHOD__, $profiler = null
+       public function __construct(
+               $url, array $options = [], $caller = __METHOD__, $profiler = null
        ) {
                global $wgHTTPTimeout, $wgHTTPConnectTimeout;
 
@@ -174,44 +173,18 @@ class MWHttpRequest implements LoggerAwareInterface {
 
        /**
         * Generate a new request object
+        * Deprecated: @see HttpRequestFactory::create
         * @param string $url Url to use
         * @param array $options (optional) extra params to pass (see Http::request())
         * @param string $caller The method making this request, for profiling
         * @throws DomainException
-        * @return CurlHttpRequest|PhpHttpRequest
+        * @return MWHttpRequest
         * @see MWHttpRequest::__construct
         */
        public static function factory( $url, $options = null, $caller = __METHOD__ ) {
-               if ( !Http::$httpEngine ) {
-                       Http::$httpEngine = function_exists( 'curl_init' ) ? 'curl' : 'php';
-               } elseif ( Http::$httpEngine == 'curl' && !function_exists( 'curl_init' ) ) {
-                       throw new DomainException( __METHOD__ . ': curl (http://php.net/curl) is not installed, but' .
-                               ' Http::$httpEngine is set to "curl"' );
-               }
-
-               if ( !is_array( $options ) ) {
-                       $options = [];
-               }
-
-               if ( !isset( $options['logger'] ) ) {
-                       $options['logger'] = LoggerFactory::getInstance( 'http' );
-               }
-
-               switch ( Http::$httpEngine ) {
-                       case 'curl':
-                               return new CurlHttpRequest( $url, $options, $caller, Profiler::instance() );
-                       case 'php':
-                               if ( !wfIniGetBool( 'allow_url_fopen' ) ) {
-                                       throw new DomainException( __METHOD__ . ': allow_url_fopen ' .
-                                               'needs to be enabled for pure PHP http requests to ' .
-                                               'work. If possible, curl should be used instead. See ' .
-                                               'http://php.net/curl.'
-                                       );
-                               }
-                               return new PhpHttpRequest( $url, $options, $caller, Profiler::instance() );
-                       default:
-                               throw new DomainException( __METHOD__ . ': The setting of Http::$httpEngine is not valid.' );
-               }
+               return \MediaWiki\MediaWikiServices::getInstance()
+                       ->getHttpRequestFactory()
+                       ->create( $url, $options, $caller );
        }
 
        /**
index 7583455..e2dfea8 100644 (file)
        "config-install-mainpage-failed": "לא הצליחה הכנסת דף ראשי: $1.",
        "config-install-done": "<strong>מזל טוב!</strong>\nהתקנת את תוכנת מדיה־ויקי.\n\nתוכנת ההתקנה יצרה את הקובץ <code>LocalSettings.php</code>.\nהוא מכיל את כל ההגדרות שלך.\n\nיש להוריד אותו ולהכניס אותו לתיקיית הבסיס שבה הותקן הוויקי שלך (אותה התיקייה שבה נמצא הקובץ index.php). ההורדה אמורה להתחיל באופן אוטומטי.\n\nאם ההורדה לא התחילה, או אם ביטלת אותה, אפשר להתחיל אותה מחדש באמצעות לחיצה על הקישור הבא:\n\n$3\n\n<strong>לתשומת לבך:</strong> אם ההורדה לא תבוצע כעת, קובץ ההגדרות <strong>לא</strong> יהיה זמין מאוחר יותר אם תוכנת ההתקנה תיסגר לפני שהקובץ יורד.\n\nלאחר שביצעת את הפעולות שלהלן, באפשרותך <strong>[$2 להיכנס לאתר הוויקי שלך]</strong>.",
        "config-install-done-path": "<strong>מזל טוב!</strong>\nהתקנת את תוכנת מדיה־ויקי.\n\nתוכנת ההתקנה יצרה את הקובץ <code>LocalSettings.php</code>.\nהוא מכיל את כל ההגדרות שלך.\n\nיש להוריד אותו ולהכניס אותו לתיקייה <code>$4</code>. ההורדה אמורה להתחיל באופן אוטומטי.\n\nאם ההורדה לא התחילה, או אם ביטלת אותה, אפשר להתחיל אותה מחדש באמצעות לחיצה על הקישור הבא:\n\n$3\n\n<strong>לתשומת לבך:</strong> אם ההורדה לא תבוצע כעת, קובץ ההגדרות <strong>לא</strong> יהיה זמין מאוחר יותר אם תוכנת ההתקנה תיסגר לפני שהקובץ יורד.\n\nלאחר שביצעת את הפעולות שלהלן, באפשרותך <strong>[$2 להיכנס לאתר הוויקי שלך]</strong>.",
+       "config-install-success": "מדיה־ויקי הותקנה בהצלחה. עכשיו אפשר\nלבקר בכתובת <$1$2> כדי לצפות בוויקי שלך.\nאם יש לך שאלות, ר' את רשימת השאלות הנפוצות שלנו:\n<https://www.mediawiki.org/wiki/Manual:FAQ> ואפשר גם להשתמש\nבאתרי התמיכה שקישורים אליהם מופיעים באותו הדף.",
        "config-download-localsettings": "הורדת <code>LocalSettings.php</code>",
        "config-help": "עזרה",
        "config-help-tooltip": "להרחיב",
index b01b23f..ee3c86f 100644 (file)
@@ -511,6 +511,8 @@ class LoadBalancer implements ILoadBalancer {
        }
 
        public function waitForAll( $pos, $timeout = null ) {
+               $timeout = $timeout ?: $this->mWaitTimeout;
+
                $oldPos = $this->mWaitForPos;
                try {
                        $this->mWaitForPos = $pos;
@@ -519,7 +521,12 @@ class LoadBalancer implements ILoadBalancer {
                        $ok = true;
                        for ( $i = 1; $i < $serverCount; $i++ ) {
                                if ( $this->mLoads[$i] > 0 ) {
-                                       $ok = $this->doWait( $i, true, $timeout ) && $ok;
+                                       $start = microtime( true );
+                                       $ok = $this->doWait( $i, true, max( 1, (int)$timeout ) ) && $ok;
+                                       $timeout -= ( microtime( true ) - $start );
+                                       if ( $timeout <= 0 ) {
+                                               break; // timeout reached
+                                       }
                                }
                        }
                } finally {
index 6308461..ae1ab58 100644 (file)
@@ -291,7 +291,7 @@ class ExtensionRegistry {
 
                        // Optimistic: If the global is not set, or is an empty array, replace it entirely.
                        // Will be O(1) performance.
-                       if ( !isset( $GLOBALS[$key] ) || ( is_array( $GLOBALS[$key] ) && !$GLOBALS[$key] ) ) {
+                       if ( !array_key_exists( $key, $GLOBALS ) || ( is_array( $GLOBALS[$key] ) && !$GLOBALS[$key] ) ) {
                                $GLOBALS[$key] = $val;
                                continue;
                        }
index f6036bb..22b831f 100644 (file)
        "watchthispage": "ई पन्ना ध्यानसूची में डालीं",
        "unwatch": "धियानसूची से हटाईं",
        "watchlist-details": "{{PLURAL:$1|$1 पन्ना}} राउर धियानसूची में बा (आ वार्ता पन्ना)।",
+       "wlheader-showupdated": "राउर अंतिम विजिट के बाद जवना पन्ना सभ में बदलाव भइल बा ऊ <strong>मोट अच्छर</strong> में देखावल जात बाड़ें।",
+       "wlnote": "नीचे $3, $4 तक ले, आखिरी {{PLURAL:$2|घंटा|<strong>$2</strong> घंटा}} में भइल {{PLURAL:$1|अंतिम बदलाव बा|अंतिम <strong>$1</strong> बदलाव बाड़ें}}।",
        "wlshowlast": "पछिला $1 घंटा $2 दिन देखावल जाय",
        "watchlist-options": "धियानसूची बिकल्प",
        "watching": "ध्यानसूची में जाते हुए",
        "contribslink": "योगदान",
        "blocklogpage": "निष्क्रिय खाता",
        "blocklogentry": "[[$1]] के ब्लॉक कइल गइल, समाप्ती के अवधि $2 $3",
+       "reblock-logentry": "[[$1]] खातिर रोक सेटिंग बदलल गइल आ अब समाप्ती समय बा $2 $3",
        "block-log-flags-nocreate": "खाता निर्माण सक्षम नइखे",
        "proxyblocker": "प्रॉक्सी ब्लॉककर्ता",
        "movepagebtn": "पन्ना स्थांतरण करीं",
        "pageinfo-content-model": "पन्ना सामग्री के मॉडल",
        "pageinfo-robot-policy": "रोबोट द्वारा इंडेक्सिंग",
        "pageinfo-robot-index": "एलाऊ बा",
+       "pageinfo-robot-noindex": "डिसएलाऊ",
        "pageinfo-watchers": "पन्ना पर धियान रखे वाला लोग के संख्या",
        "pageinfo-few-watchers": "$1 से कम धियान रखे {{PLURAL:$1|वाला|वाला लोग}}",
        "pageinfo-redirects-name": "एह पन्ना पर आवे वाला अनुप्रेषणन के संख्या",
        "pageinfo-subpages-name": "एह पन्ना के उपपन्ना संख्या",
+       "pageinfo-subpages-value": "$1 ($2 {{PLURAL:$2|अनुप्रेषण}}; $3 {{PLURAL:$3|गैर-अनुप्रेषण}})",
        "pageinfo-firstuser": "पन्ना बनावेवाला",
        "pageinfo-firsttime": "पन्ना बनावे के तारीख",
        "pageinfo-lastuser": "अंतिम संपादक",
        "pageinfo-recent-edits": "हाल के संपादन संख्या (पछिला $1 में)",
        "pageinfo-recent-authors": "हाल के बिभिन्न संपादक लोग के संख्या",
        "pageinfo-magic-words": "जादुई शब्द {{{{PLURAL:$1||शब्द|शब्द}}}} ($1)",
+       "pageinfo-hidden-categories": "छिपल {{PLURAL:$1|श्रेणी}} ($1)",
        "pageinfo-templates": "ट्रांसक्लूड {{PLURAL:$1|टेम्पलेट|टेम्पलेट सभ}} ($1)",
        "pageinfo-toolboxlink": "पन्ना से जुड़ल जानकारी",
        "pageinfo-contentpage": "सामग्री पन्ना के रूप में गिनती वाला",
        "nextdiff": "नया संपादन →",
        "widthheightpage": "$1 × $2, $3 {{PLURAL:$3|पन्ना}}",
        "file-info-size": "$1 × $2 पिक्सेल, फाइल साइज: $3, MIME टाइप: $4",
+       "file-info-size-pages": "$1 × $2 पिक्सेल, फाइल साइज: $3, MIME प्रकार: $4, $5 {{PLURAL:$5|पन्ना}}",
        "file-nohires": "ए से उच्च गुणवत्ता उपलब्ध नइखे।",
        "svg-long-desc": "एसवीजी फाइल, नॉमिनली $1 x $2 पिक्सल, फाइल के आकार: $3",
        "show-big-image": "ओरिजनल फाइल",
        "tags-active-no": "ना",
        "tags-hitcount": "$1 {{PLURAL:$1|बदलाव}}",
        "logentry-delete-delete": "$1 द्वारा पन्ना $3 {{GENDER:$2|हटा}} दिहल गइल",
+       "logentry-delete-restore": "$1 पन्ना $3 ($4) के वापस ले {{GENDER:$2|अइलें|अइली}}",
        "logentry-delete-revision": "$1 पन्ना $3 पर {{PLURAL:$5|रिवीजन|$5 रिवीजन सभ}} के विजिबिलिटी {{GENDER:$2|बदललें|बदलली}}: $4",
        "revdelete-content-hid": "छिपावल सामग्री",
        "revdelete-restricted": "प्रबंधक पर प्रतिबंध लागू",
index 125c4a8..1780f90 100644 (file)
        "category-empty": "<em>Ova kategorija trenutno ne sadrži članke ni medije.</em>",
        "hidden-categories": "{{PLURAL:$1|Sakrivena kategorija|Sakrivene kategorije}}",
        "hidden-category-category": "Skrivene kategorije",
-       "category-subcat-count": "{{PLURAL:$2|Ova kategorija samo ima sljedeću potkategoriju.|Ova kategorija ima {{PLURAL:$1|sljedeću potkategoriju|sljedeće $1 potkategorije|sljedećih $1 potkategorija}}, od $2 ukupno.}}",
+       "category-subcat-count": "{{PLURAL:$2|1=Ova kategorija samo ima sljedeću potkategoriju.|Ova kategorija ima {{PLURAL:$1|sljedeću potkategoriju|sljedeće $1 potkategorije|sljedećih $1 potkategorija}}, od $2 ukupno.}}",
        "category-subcat-count-limited": "Ova kategorija sadrži {{PLURAL:$1|sljedeću $1 potkategoriju|sljedeće $1 potkategorije|sljedećih $1 potkategorija}}.",
-       "category-article-count": "{{PLURAL:$2|Ova kategorija sadrži samo sljedeću stranicu.|{{PLURAL:$1|Sljedeća stranica je|Sljedeće $1 stranice su|Sljedećih $1 stranica je}} u ovoj kategoriji, od ukupno $2.}}",
+       "category-article-count": "{{PLURAL:$2|1=Ova kategorija sadrži samo sljedeću stranicu.|{{PLURAL:$1|Sljedeća stranica je|Sljedeće $1 stranice su|Sljedećih $1 stranica je}} u ovoj kategoriji, od ukupno $2.}}",
        "category-article-count-limited": "{{PLURAL:$1|Slijedeća $1 stranica je|Slijedeće $1 stranice su|Slijedećih $1 stranica je}} u ovoj kategoriji.",
        "category-file-count": "{{PLURAL:$2|Ova kategorija ima slijedeću $1 datoteku.|{{PLURAL:$1|Prikazana je $1 datoteka|Prikazane su $1 datoteke|Prikazano je $1 datoteka}} u ovoj kategoriji, od ukupno $2.}}",
        "category-file-count-limited": "{{PLURAL:$1|Slijedeća $1 datoteka je|Slijedeće $1 datoteke su|Slijedećih $1 datoteka je}} u ovoj kategoriji.",
index 4288f61..e668234 100644 (file)
        "botpasswords-insert-failed": "شکست در افزودن نام ربات «$1». در حال حاضر اضافه شده است؟",
        "botpasswords-update-failed": "شکست در به‌روزرسانی نام رباتی «$1». حذف شده است؟",
        "botpasswords-created-title": "گذرواژه ربات ایجاد شد",
-       "botpasswords-created-body": "گذرواژهٔ رباتی برای ربات «$1» و کاربر «$2» ایجاد شد.",
+       "botpasswords-created-body": "گذرواژهٔ رباتی برای ربات «$1» و {{GENDER:$2|کاربر}} «$2» ایجاد شد.",
        "botpasswords-updated-title": "گذرواژه ربات به‌روز شد",
-       "botpasswords-updated-body": "گذرواژهٔ رباتی برای ربات «$1» و کاربر «$2» به‌روز شد.",
+       "botpasswords-updated-body": "گذرواژهٔ رباتی برای ربات «$1» و {{GENDER:$2|کاربر}} «$2» به‌روز شد.",
        "botpasswords-deleted-title": "گذرواژه ربات حذف شد",
-       "botpasswords-deleted-body": "گذرواژهٔ رباتی برای ربات «$1» و کاربر «$2» حذف شد.",
+       "botpasswords-deleted-body": "گذرواژهٔ رباتی برای ربات «$1» و {{GENDER:$2|کاربر}} «$2» حذف شد.",
        "botpasswords-newpassword": "<strong>$2</strong> گذرواژهٔ جدید برای ورود با حساب <strong>$1</strong> است. <em>لطفاً آن را برای ارجاع در آینده ذخیره کنید.</em> <br> (برای ربات‌های قدیمی که نیاز به نام کاربری مطابق با حساب کاربری‌شان دارد، شما می‌توانید از <strong>$3</strong> به عنوان نام کاربری و از <strong>$4</strong> به عنوان گذرواژه استفاده کنید.)",
        "botpasswords-no-provider": "BotPasswordsSessionProvider موجود نیست.",
        "botpasswords-restriction-failed": "محدودیت‌های گذرواژهٔ ربات از این ورود جلوگیری می‌کند.",
        "diff-multi-sameuser": "({{PLURAL:$1|یک نسخهٔ میانی|$1 نسخهٔ میانی}}ِ همین کاربر نمایش داده نشده است)",
        "diff-multi-otherusers": "({{PLURAL:$1|۱ نسخهٔ میانی|$1 نسخه‌ٔ میانی}} ویرایش شده توسط {{PLURAL:$2|۱ کاربر|$2 کاربر}} نشان داده نشده)",
        "diff-multi-manyusers": "({{PLURAL:$1|یک|$1}} نسخه‌ٔ میانی ویرایش شده توسط بیش از {{PLURAL:$2|یک|$2}} کاربر نشان داده نشده است)",
+       "diff-paragraph-moved-tonew": "پاراگراف جابه‌جا شده بود. کلیک کنید تا به جای جدیدش بروید.",
+       "diff-paragraph-moved-toold": "پاراگراف جابه‌جا شده بود. کلیک کنید تا به جای قدیمش بروید.",
        "difference-missing-revision": "{{PLURAL:$2|یک ویرایش|$2 ویرایش}}  از تفاوت نسخه‌ها ($1) {{PLURAL:$2|یافت|یافت}}  نشد.\n\nاین اتفاق معمولاً در اثر دنبال کردن پیوند تفاوتی به یک صفحهٔ حذف‌شده پیش می‌آید.\nمی‌توانید جزئیات بیشتر را در [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} سیاههٔ حذف] بیابید.",
        "searchresults": "نتایج جستجو",
        "searchresults-title": "نتایج جستجو برای «$1»",
        "recentchangesdays-max": "حداکثر $1 {{PLURAL:$1|روز}}",
        "recentchangescount": "تعداد پیش‌فرض ویرایش‌های نمایش یافته:",
        "prefs-help-recentchangescount": "این گزینه شامل تغییرات اخیر، تاریخچهٔ صفحه‌ها و سیاهه‌ها می‌شود.",
-       "prefs-help-watchlist-token2": "این کلید رمز خوراک وب فهرست پی‌گیری‌های شماست.\nهرکس آن را بداند می‌تواند فهرست پی‌گیری‌هایتان را بخواند، بنابراین آن را به اشتراک نگذارید. [[Special:ResetTokens|اگر لازم است آن را تغییر دهید اینجا را کلیک کنید]].",
+       "prefs-help-watchlist-token2": "این کلید رمز خوراک وب فهرست پی‌گیری‌های شماست.\nهرکس آن را بداند می‌تواند فهرست پی‌گیری‌هایتان را بخواند، بنابراین آن را به اشتراک نگذارید. اگر لازم باشد [[Special:ResetTokens|می‌توانید کلیدی نو ایجاد کنید]].",
        "savedprefs": "ترجیحات شما ذخیره شد.",
        "savedrights": "گروه‌های کاربری {{GENDER:$1|$1}} ذخیره شده‌است.",
        "timezonelegend": "منطقهٔ زمانی:",
        "timezoneregion-indian": "اقیانوس هند",
        "timezoneregion-pacific": "اقیانوس آرام",
        "allowemail": "دریافت ایمیل از دیگر کاربران ممکن باشد",
+       "email-allow-new-users-label": "اجازهٔ دریافت ایمیل از کاربران تازه‌کار داده شود",
        "email-blacklist-label": "این کاربران را از فرستادن رایانامه به من منع کن:",
        "prefs-searchoptions": "جستجو",
        "prefs-namespaces": "فضاهای نام",
        "rcfilters-savedqueries-apply-and-setdefault-label": "ایجاد پالایه پیش‌فرض",
        "rcfilters-savedqueries-cancel-label": "لغو",
        "rcfilters-savedqueries-add-new-title": "ذخیره تنظیمات کنونی پالایه",
-       "rcfilters-savedqueries-already-saved": "این پالایه‌ها اکنون ذخیره شده‌اند",
+       "rcfilters-savedqueries-already-saved": "این پالایه‌ها اکنون ذخیره شده‌اند. تنظیمات‌تان را تغییر دهید تا یک پالایهٔ ذخیره شدهٔ جدید بسازید.",
        "rcfilters-restore-default-filters": "بازگردانی پالایه‌های پیش‌فرض",
        "rcfilters-clear-all-filters": "پاک‌کردن تمام پالایه‌ها",
        "rcfilters-show-new-changes": "دیدن جدیدترین تغییرات",
        "recentchangeslinked-feed": "تغییرات مرتبط",
        "recentchangeslinked-toolbox": "تغییرات مرتبط",
        "recentchangeslinked-title": "تغییرات مرتبط با $1",
-       "recentchangeslinked-summary": "در زیر فهرستی از تغییرات اخیر صفحه‌های پیوند داده شده از این صفحه (یا اعضای رده مورد نظر) را می‌بینید.\nصفحه‌هایی که در [[Special:Watchlist|فهرست پی‌گیری‌هایتان]] باشند به صورت '''پررنگ''' نشان داده می‌شوند.",
+       "recentchangeslinked-summary": "نام یک صفحه را وارد کنید تا تغییرات صفحه‌هایی که به آن پیوند داده‌اند یا از آن پیوند گرفته‌اند را ببینید. (برای مشاهدهٔ اعضای یک رده، ورودی را به صورت رده:نام رده وارد کنید). تغییرات در صفحه‌هایی که در  [[Special:Watchlist|فهرست پی‌گیری‌های شما]] هستند <strong>ضخیم</strong> نمای می‌یابند.",
        "recentchangeslinked-page": "نام صفحه:",
        "recentchangeslinked-to": "نمایش تغییرات صفحه‌هایی که به صفحهٔ داده‌شده پیوند دارند",
        "recentchanges-page-added-to-category": "[[:$1]] به رده اضافه شد",
        "autosumm-removed-redirect": "تغییرمسیر به [[$1]] حذف شد",
        "autosumm-new": "صفحه‌ای تازه حاوی «$1» ایجاد کرد",
        "autosumm-newblank": "ایجاد صفحه خالی",
-       "size-bytes": "$1 بایت",
+       "size-bytes": "$1 {{PLURAL:$1|بایت}}",
        "size-kilobytes": "$1 کیلوبایت",
        "size-megabytes": "$1 مگابایت",
        "size-gigabytes": "$1 گیگابایت",
        "version-poweredby-others": "دیگران",
        "version-poweredby-translators": "مترجمان translatewiki.net",
        "version-credits-summary": "افراد زیر را به خاطر ویرایش‌هایش در [[Special:Version|مدیاویکی]] معرفی می‌نمائیم.",
-       "version-license-info": "مدیاویکی یک نرم‌افزار آزاد است. می‌توانید آن را با شرایط نگارش ۲، یا (با نظر خودتان) هر نگارش جدیدتری از پروانه جامع همگانی گنو که توسط بنیاد نرم‌افزار آزاد منتشر شده‌است، بازنشر کنید.\n\nمدیاویکی با این امید که مفید واقع شود منتشر شده‌است، ولی هیچ‌گونه ضمانتی، حتی ضمانت ضمنی تجاری یا مناسب بودن برای یک مصرف خاص را ارائه نمی‌کند. برای اطلاعات بیش‌تر، پروانه جامع همگانی گنو را مشاهده کنید.\n\nشما باید [{{SERVER}}{{SCRIPTPATH}}/COPYING یک نسخه از پروانه جامع همگانی گنو] را به همراه این برنامه دریافت کرده باشید. در غیر این صورت با Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA یا آن را [//www.gnu.org/licenses/old-licenses/gpl-2.0.html مکاتبه کرده یا آن را به صورت برخط بخوانید].",
+       "version-license-info": "مدیاویکی یک نرم‌افزار آزاد است. می‌توانید آن را با شرایط نگارش ۲، یا (با نظر خودتان) هر نگارش جدیدتری از پروانه جامع همگانی گنو که توسط بنیاد نرم‌افزار آزاد منتشر شده‌است، بازنشر کنید.\n\nمدیاویکی با این امید که مفید واقع شود منتشر شده‌است، ولی <em>هیچ‌گونه ضمانتی</em>، حتی ضمانت ضمنی <strong>تجاری</strong> یا <strong>مناسب بودن برای یک مصرف خاص</strong> را ارائه نمی‌کند. برای اطلاعات بیش‌تر، پروانه جامع همگانی گنو را مشاهده کنید.\n\nشما باید [{{SERVER}}{{SCRIPTPATH}}/COPYING یک نسخه از پروانه جامع همگانی گنو] را به همراه این برنامه دریافت کرده باشید. در غیر این صورت با Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA یا آن را [//www.gnu.org/licenses/old-licenses/gpl-2.0.html مکاتبه کرده یا آن را به صورت برخط بخوانید].",
        "version-software": "نسخهٔ نصب‌شده",
        "version-software-product": "محصول",
        "version-software-version": "نسخه",
        "tag-mw-contentmodelchange": "تغییر مدل محتوا",
        "tag-mw-contentmodelchange-description": "ویرایش‌هایی که [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:ChangeContentModel مدل محتوای صفحه را تغییر می‌دهند]",
        "tag-mw-new-redirect": "تغییر مسیر جدید",
+       "tag-mw-new-redirect-description": "ویرایش‌هایی که یک تغییرمسیر جدید ساخته‌اند یا صفحه‌ای را به یک تغییرمسیر تبدیل کرده‌اند",
        "tag-mw-removed-redirect": "تغییرمسیر حذف شد",
+       "tag-mw-removed-redirect-description": "ویرایش‌هایی که یک صفحهٔ تغییرمسیر را به صفحه‌ای غیر تغییرمسیر تغییر داده‌اند",
+       "tag-mw-changed-redirect-target": "تغییر هدف تغییرمسیر",
+       "tag-mw-changed-redirect-target-description": "ویرایش‌هایی که هدف یک تغییرمسیر را تغییر داده‌اند",
        "tag-mw-blank": "خالی‌کردن",
        "tag-mw-blank-description": "ویرایش‌هایی که یک صفحه را خالی می‌کنند",
        "tag-mw-replace": "جایگزین شد",
        "tag-mw-replace-description": "ویرایش‌هایی که بیش از ۹۰ درصد صفحه را حذف می‌کنند",
        "tag-mw-rollback": "واگردانی",
+       "tag-mw-rollback-description": "ویرایش‌هایی که با استفاده از پیوند واگردانی، ویرایش‌های قبلی را واگردانی کرده‌اند",
+       "tag-mw-undo": "خنثی‌سازی",
+       "tag-mw-undo-description": "ویرایش‌هایی که با استفاده از پیوند خنثی‌سازی، ویرایش‌های قبلی را خنثی کرده‌اند",
        "tags-title": "برچسب‌ها",
        "tags-intro": "این صفحه فهرستی‌است از برچسب‌هایی که نرم‌افزار با آن‌ها ویرایش‌ها را علامت‌گذری می‌کند، به همراه معانی آن‌ها.",
        "tags-tag": "نام برچسب",
        "limitreport-expansiondepth": "بیشترین عمق گسترش",
        "limitreport-expensivefunctioncount": "تعداد تابع تجزیه‌گر پرمصرف",
        "expandtemplates": "بسط دادن الگوها",
-       "expand_templates_intro": "این صفحهٔ ویژه متنی را دریافت کرده و تمام الگوهای به‌کاررفته در آن را به طور بازگشتی بسط می‌دهد. همچنین تابع‌های تجزیه چون <code><nowiki>{{</nowiki>#language:…}}</code> و متغیرهایی چون  <code><nowiki>{{</nowiki>CURRENTDAY}}</code> را هم بسط می‌دهد — در واقع تقریباً هرچه را که داخل دوآکولاد باشد. این کار با صدازدن مرحلهٔ تجزیهٔ مربوط در خود مدیاویکی صورت می‌گیرد.",
+       "expand_templates_intro": "این صفحهٔ ویژه، ویکی‌متنی را دریافت کرده و تمام الگوهای به‌کاررفته در آن را به طور بازگشتی بسط می‌دهد. همچنین تابع‌های تجزیه چون <code><nowiki>{{</nowiki>#language:…}}</code> و متغیرهایی چون  <code><nowiki>{{</nowiki>CURRENTDAY}}</code> را هم بسط می‌دهد — در واقع تقریباً هرچه را که داخل دوآکولاد باشد. این کار با صدازدن مرحلهٔ تجزیهٔ مربوط در خود مدیاویکی صورت می‌گیرد.",
        "expand_templates_title": "عنوان موضوع، برای {{FULLPAGENAME}} و غیره:",
        "expand_templates_input": "ویکی‌متن ورودی:",
        "expand_templates_output": "نتیجه",
        "expand_templates_preview": "پیش‌نمایش",
        "expand_templates_preview_fail_html": "<em>به دلیل این که در {{SITENAME}} اچ‌تی‌ام‌ال خام فعال است و اطلاعات نشست کاربری از دست رفت، پیش نمایش به عنوان یک اقدام احتیاطی در برابر حملات جاوااسکریپت پنهان است.</em>\n\n<strong>اگر این تلاش پیش‌نمایش مشروع است، لطفاً دوباره سعی کنید.</strong>\nاگر هنوز کار نکرد، سعی کنید [[Special:UserLogout|خروج از سیستم]] را کلیک نموده و دوباره وارد شوید، و از این‌ که مرورگر شما اجازه دریافت کوکی از این وب‌گاه را می‌دهد اطمینان حاصل کنید.",
        "expand_templates_preview_fail_html_anon": "<em>به دلیل این که در {{SITENAME}} اچ‌تی‌ام‌ال خام فعال است و اطلاعات نشست کاربری از دست رفت، پیش نمایش به عنوان یک اقدام احتیاطی در برابر حملات جاوااسکریپت پنهان است.</em>\n\n<strong>اگر این تلاش پیش‌نمایش مشروع است، لطفا [[Special:UserLogin|به سامانه وارد شوید]] و دوباره تلاش کنید.</strong>",
-       "expand_templates_input_missing": "شما نیازمندید که حداقل متن‌هایی را برای وارد کردن تهیه کنید.",
+       "expand_templates_input_missing": "می‌بایست دست کم مقداری ویکی‌متن را وارد کنید.",
        "pagelanguage": "تغییر زبان صفحه",
        "pagelang-name": "صفحه",
        "pagelang-language": "زبان",
        "log-action-filter-upload": "نوع بارگذاری",
        "log-action-filter-all": "همه",
        "log-action-filter-block-block": "بستن",
-       "log-action-filter-block-reblock": "تصحÛ\8cØ­ Ø¨Ù\84اک",
+       "log-action-filter-block-reblock": "تغÛ\8cÛ\8cر Ù\82طع Ø¯Ø³ØªØ±Ø³Û\8c",
        "log-action-filter-block-unblock": "باز شدن",
        "log-action-filter-contentmodel-change": "تغییر مدل محتوا",
        "log-action-filter-contentmodel-new": "ایجاد صفحه با مدل محتوای غیر استاندارد",
index bc756df..4c3fc7e 100644 (file)
        "autosumm-replace": "Teks vervange mit '$1'",
        "autoredircomment": "Verwies door nao [[$1]]",
        "autosumm-new": "Nuuj pazjena mit $1",
+       "autosumm-newblank": "haet 'n laeg pagina aangemaak",
        "lag-warn-normal": "Verangeringe die nujer zeen es $1 {{PLURAL:$1|sekónd|sekónd}} waere mesjiens neet getuind in dees lies.",
        "lag-warn-high": "Door 'ne hoege database-servertoeveur zeen verangeringe nujer es $1 {{PLURAL:$1|seconde|seconde}} mäögelik neet besjikbaar in de lies.",
        "watchlistedit-normal-title": "Volglies bewirke",
index ab2348a..35021d8 100644 (file)
                ]
        },
        "tog-underline": "Sotolìnnia i colegaménti",
-       "tog-hideminor": "Ascondi e modìffiche minoî inte ùrtime modìffiche",
-       "tog-hidepatrolled": "Ascondi e modìffiche verificæ inte ùrtime modìffiche",
+       "tog-hideminor": "Ascondi e modìfiche minoî inte ùrtime modìfiche",
+       "tog-hidepatrolled": "Ascondi e modìfiche verificæ inte ùrtime modìfiche",
        "tog-newpageshidepatrolled": "Ascondi e pàgine verificæ da l'elénco de pàgine ciù recénti",
        "tog-hidecategorization": "Ascondi a categorizasión de pàgine",
-       "tog-extendwatchlist": "mostra tùtte e modìffiche a-i öservatoî speciâli, no sôlo l'ùrtima",
-       "tog-usenewrc": "Amùggia pe pàgina e modìffiche inte ùrtime modìffiche e sotta öservaçión",
+       "tog-extendwatchlist": "mostra tùtte e modìfiche di öservæ speciâli, no sôlo l'ùrtima",
+       "tog-usenewrc": "Amùggia pe pàgina e modìfiche inte ùrtime modìfiche e sotta öservaçión",
        "tog-numberheadings": "Numeraçión aotomàtica di tìtoli de seçión",
-       "tog-showtoolbar": "Fanni vedde a bâra di strumenti de modìffica",
-       "tog-editondblclick": "Modìffica de pàgine tràmite dóggio clic",
+       "tog-showtoolbar": "Fanni védde a bâra di strumenti de modìfica",
+       "tog-editondblclick": "Modìfica de pàgine tràmite dóggio clic",
        "tog-editsectiononrightclick": "Permetti de modificâ e seçioìn co-o clic drîto in sciô tìtolo",
-       "tog-watchcreations": "Azonzi e pàgine che mi crêo e i files che càrego a-i öservatoî speciâli",
-       "tog-watchdefault": "Azonzi e pàgine e i files che modìffico a-a mæ lista sotta öservaçión",
+       "tog-watchcreations": "Azonzi e pàgine che mi crêo e i files che càrego a-i öservæ speciâli",
+       "tog-watchdefault": "Azonzi e pàgine e i files che mi modìffico a-a mæ lista sotta öservaçión",
        "tog-watchmoves": "Azonzi e pàgine e i files che mescio a-a mæ lista sotta öservaçión",
        "tog-watchdeletion": "Azonzi e pàgine e i files che scancello a-a mæ lista sotta öservaçión",
        "tog-watchuploads": "Azonzi i nêuvi files che mi métto sotta öservaçión",
        "tog-watchrollback": "Azonzi a-a mæ lista sotta öservaçión e pàgine dôve ò fæto in rollback",
-       "tog-minordefault": "Indica de longo cómme menô tùtte e modìffiche",
-       "tog-previewontop": "Mostra l'anteprìmma de d'âto a-a cazélla de modìffica",
-       "tog-previewonfirst": "Mostra l'anteprìmma in sciâ prìmma modìffica",
+       "tog-minordefault": "Indica de longo cómme menô tùtte e modìfiche",
+       "tog-previewontop": "Mostra l'anteprìmma de d'âto a-a cazélla de modìfica",
+       "tog-previewonfirst": "Mostra l'anteprìmma in sciâ prìmma modìfica",
        "tog-enotifwatchlistpages": "Famme savéi via e-mail quande 'na pàgina ò in file inta mæ lista de öservaçión a vegne cangiâ.",
-       "tog-enotifusertalkpages": "Màndime 'n'e-mail se gh'é de modìffiche inta mæ pàgina de discusción.",
-       "tog-enotifminoredits": "Màndime 'n'email ascì pe-e modìffiche menoî de pàgine e di files",
-       "tog-enotifrevealaddr": "Mostra o mæ indirìsso inte emails de notìffica",
+       "tog-enotifusertalkpages": "Màndime 'n'e-mail se gh'é de modìfiche inta mæ pàgina de discusción.",
+       "tog-enotifminoredits": "Màndime 'n'email ascì pe-e modìfiche menoî de pàgine e di files",
+       "tog-enotifrevealaddr": "Mostra o mæ indirìsso inte emails de notìfica",
        "tog-shownumberswatching": "Mostra o nùmero di uténti che tegnan d'éuggio sta pàgina",
        "tog-oldsig": "Firma atoâle:",
        "tog-fancysig": "Tratta a firma cómme wikitesto (sénsa n'ingancio aotomàtico)",
        "tog-uselivepreview": "Abìlita a fonçión de l'anteprìmma in diretta",
        "tog-forceeditsummary": "Domàndame a confèrma se o cànpo de l'ògetto o l'é vêuo",
-       "tog-watchlisthideown": "Ascondi e mæ modìffiche da-a lista sotta öservaçión",
-       "tog-watchlisthidebots": "Ascondi e modìffiche di bot da-a lista sotta öservaçión",
-       "tog-watchlisthideminor": "Ascondi e modìffiche minoî da-a lista sotta öservaçión",
-       "tog-watchlisthideliu": "Ascondi e modìffiche di uténti intræ da-a lista sotta öservaçión",
+       "tog-watchlisthideown": "Ascondi e mæ modìfiche da-a lista sotta öservaçión",
+       "tog-watchlisthidebots": "Ascondi e modìfiche di bot da-a lista sotta öservaçión",
+       "tog-watchlisthideminor": "Ascondi e modìfiche minoî da-a lista sotta öservaçión",
+       "tog-watchlisthideliu": "Ascondi e modìfiche di uténti intræ da-a lista sotta öservaçión",
        "tog-watchlistreloadautomatically": "Recàrega aotomaticaménte a lista di öservæ quande vegne cangiòu in filtro (ghe veu o JavaScript)",
-       "tog-watchlisthideanons": "Ascondi e modìffiche di uténti sénsa nómme da-a lista sotta öservaçión",
-       "tog-watchlisthidepatrolled": "Ascondi e modìffiche za controlæ da-a lista sotta öservaçión",
+       "tog-watchlisthideanons": "Ascondi e modìfiche di uténti sénsa nómme da-a lista sotta öservaçión",
+       "tog-watchlisthidepatrolled": "Ascondi e modìfiche za controlæ da-a lista sotta öservaçión",
        "tog-watchlisthidecategorization": "Ascondi a categorizasión de pàgine",
        "tog-ccmeonemails": "Màndime 'na còpia de e-mails che mi mando a-i âtri uténti",
        "tog-diffonly": "No mostrâ o contegnûo da pàgina sotta o confronto fra verscioìn",
-       "tog-showhiddencats": "Fanni vedde e categorîe ascôze",
-       "tog-norollbackdiff": "Ometti o confronto tra verscioin doppo ch'ho fæto o ripristino",
-       "tog-useeditwarning": "Avertime se lascio 'na paggina de modiffica sens'avei sarvou i cangi",
-       "tog-prefershttps": "Adœuvia delongo una connescion segua quande se intra",
-       "underline-always": "Sempre",
+       "tog-showhiddencats": "Fanni védde e categorîe ascôze",
+       "tog-norollbackdiff": "Ometti o confronto fra verscioin dòppo ch'ho fæto o riprìstino",
+       "tog-useeditwarning": "Avèrtime se lascio 'na pàgina de modìfica sens'avei sarvòu i cangiamenti",
+       "tog-prefershttps": "Adêuvia de longo 'na conesción segûa quande se intra",
+       "underline-always": "Sénpre",
        "underline-never": "Mâi",
-       "underline-default": "Impostassioin predefinie do navegatô o da skin",
-       "editfont-style": "Stile do carattere de l'area de modiffica",
-       "editfont-monospace": "Carattere a larghessa fissa",
-       "editfont-sansserif": "Carattere sans-serif",
-       "editfont-serif": "Carattere serif",
+       "underline-default": "Inpostasioìn predefinîe do navegatô ò da skin",
+       "editfont-style": "Stîle do caràtere de l'àrea de modìfica",
+       "editfont-monospace": "Caràtere a larghéssa fissa",
+       "editfont-sansserif": "Caràtere sans-serif",
+       "editfont-serif": "Caràtere serif",
        "sunday": "doménega",
        "monday": "lunesdì",
        "tuesday": "mâtesdì",
index 5d2557e..232710c 100644 (file)
        "backend-fail-hashes": "Neizdevās iegūt failu kontrolsummas salīdzināšanai.",
        "backend-fail-notsame": "Neidentisks fails jau pastāv $1.",
        "backend-fail-delete": "Nevar izdzēst failu $1.",
+       "backend-fail-describe": "Nevarēja izmainīt faila \"$1\" metadatus.",
        "backend-fail-alreadyexists": "Fails $1 jau pastāv.",
        "backend-fail-store": "Neizdevās saglabāt failu \"$1\" \"$2\".",
        "backend-fail-copy": "Nevar kopēt failu $1 uz $2.",
        "protectcomment": "Iemesls:",
        "protectexpiry": "Beidzas:",
        "protect_expiry_invalid": "Beigu termiņš ir nederīgs.",
-       "protect_expiry_old": "Beigu termiņs ir pagātnē.",
+       "protect_expiry_old": "Beigu termiņš ir pagātnē.",
        "protect-unchain-permissions": "Pieslēgt papildu aizsargāšanas iespējas",
        "protect-text": "Šeit var apskatīt un izmainīt lapas <strong>$1</strong> aizsardzības līmeni.",
        "protect-locked-access": "Jūsu kontam nav atļaujas mainīt lapas aizsardzības pakāpi.\nPašreizējie lapas '''$1''' iestatījumi ir:",
        "blocklist-userblocks": "Paslēpt kontu bloķējumus",
        "blocklist-tempblocks": "Paslēpt pagaidu bloķējumus",
        "blocklist-addressblocks": "Paslēpt vienas IP adreses bloķējumus",
+       "blocklist-rangeblocks": "Paslēpt IP adrešu diapazona blokus",
        "blocklist-timestamp": "Laiks",
        "blocklist-target": "Mērķis",
+       "blocklist-expiry": "Beidzas",
+       "blocklist-by": "Bloķējušais administrators",
        "blocklist-params": "Bloķēšanas parametri",
        "blocklist-reason": "Iemesls",
        "ipblocklist-submit": "Meklēt",
        "block-log-flags-nousertalk": "nevar izmainīt savu diskusiju lapu",
        "block-log-flags-hiddenname": "lietotājvārds slēpts",
        "ipb_expiry_invalid": "Nederīgs beigu termiņš",
+       "ipb_expiry_old": "Beigu termiņš ir pagātnē.",
        "ipb_expiry_temp": "Slēpto lietotājvārdu bloķēšanai jābūt beztermiņa.",
        "ipb_already_blocked": "\"$1\" jau ir bloķēts",
        "ipb-needreblock": "$1 jau ir bloķēts.\nVai tu gribi izmainīt bloka uzstādījumus?",
        "unlockconfirm": "Jā, es tiešām vēlos atbloķēt datubāzi.",
        "lockbtn": "Bloķēt datubāzi",
        "unlockbtn": "Atbloķēt datubāzi",
+       "locknoconfirm": "Tu neatzīmēji apstiprinājuma rūtiņu.",
        "lockdbsuccesssub": "Datubāzes bloķēšana pabeigta",
        "unlockdbsuccesssub": "Datubāze atbloķēta",
        "unlockdbsuccesstext": "Datubāze ir atbloķēta.",
-       "databasenotlocked": "Datubāzē nav bloķēta.",
+       "databaselocked": "Datubāze jau ir bloķēta.",
+       "databasenotlocked": "Datubāze nav bloķēta.",
        "move-page": "Pārvietot $1",
        "move-page-legend": "Pārvietot lapu",
        "movepagetext": "Šajā lapā tu vari pārdēvēt vai pārvietot lapu, kopā tās izmaiņu hronoloģiju pārvietojot to uz citu nosaukumu.\nIepriekšējā lapa kļūs par lapu, kas pāradresēs uz jauno lapu.\nŠeit var automātiski izmainīt visas pāradresācijas (redirektus) uz šo lapu (2. ķeksis apakšā).\nSaites pārējās lapās uz iepriekšējo lapu netiks mainītas. Ja izvēlies neizmainīt pāradresācijas automātiski, noteikti pārbaudi un izlabo, izskaužot [[Special:DoubleRedirects|dubultu pāradresāciju]] vai [[Special:BrokenRedirects|pāradresāciju uz neesošu lapu]].\nTev ir jāpārliecinās, vai saites vēl aizvien ved tur, kur tās ir paredzētas.\n\nŅem vērā, ka lapa '''netiks''' pārvietota, ja jau eksistē kāda cita lapa ar vēlamo nosaukumu (izņemot gadījumus, kad tā ir tukša vai kad tā ir pāradresācijas lapa, kā arī tad, ja tai nav izmaiņu hronoloģijas).\nTas nozīmē, ka tu vari pārvietot lapu atpakaļ, no kurienes tu jau reiz to esi pārvietojis, ja būsi kļūdījies, bet tu nevari pārrakstīt jau esošu lapu.\n\n'''BRĪDINĀJUMS!'''\nPopulārām lapām tā var būt krasa un negaidīta pārmaiņa;\npirms turpināšanas vēlreiz pārdomā, vai tu izproti visas iespējamās sekas.",
        "movenotallowedfile": "Tev nav atļaujas pārvietot failus.",
        "cant-move-user-page": "Tev nav atļaujas pārvietot lietotāju lapas (neskaitot apakšlapas).",
        "cant-move-to-user-page": "Tev nav atļaujas pārvietot lapu uz lietotāja lapu (neskaitot lietotāja lapas apakšlapu).",
+       "cant-move-category-page": "Tev nav atļaujas pārvietot kategoriju lapas.",
+       "cant-move-to-category-page": "Tev nav atļaujas pārvietot lapu uz kategorijas lapu.",
+       "cant-move-subpages": "Tev nav atļaujas pārvietot apakšlapas.",
+       "namespace-nosubpages": "Vārdtelpā \"$1\" apakšlapas nav atļautas.",
        "newtitle": "Jaunais nosaukums:",
        "move-watch": "Uzraudzīt šo lapu",
        "movepagebtn": "Pārvietot lapu",
index d8fab4f..8da83c6 100644 (file)
        "uploadstash-file-not-found-no-object": "Ойуучаан билэтин эбийиэгин оҥорор сатаммата.",
        "uploadstash-file-not-found-no-remote-thumb": "Эскиис сатаан хостоммото: $1\nURL = $2",
        "uploadstash-file-not-found-missing-content-type": "Content-type аат көстүбэтэ.",
+       "uploadstash-not-logged-in": "Бэлиэтэммит кыттааччы суох, билэ кыттааччы киэнэ буолуохтаах.",
+       "uploadstash-wrong-owner": "Бу билэ ($1) кыттааччы киэнэ буолбатах.",
+       "uploadstash-no-such-key": "Күлүүс ($1) суох, сотор сатаммат.",
+       "uploadstash-no-extension": "Кэтирээһинэ кураанах.",
+       "uploadstash-zero-length": "Билэ уһуна нуулга тэҥ.",
        "invalid-chunk-offset": "Бобуллубут сыҕарыйыы",
        "img-auth-accessdenied": "Киирии бобуллубут",
        "img-auth-nopathinfo": "PATH_INFO суох.\nЭн сиэрбэриҥ маннык сибидиэнньэни ыытарга туруоруллубатах эбит.\nБаҕар кини CGI олоҕурара буолуо ол иһин img_auth өйөөбөтө буолуо.\nМаны https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Image_Authorization көр.",
        "listfiles_size": "Кээмэйэ",
        "listfiles_description": "Быһаарыыта",
        "listfiles_count": "Барыллар",
-       "listfiles-show-all": "Ð\9eйÑ\83Ñ\83 Ñ\8dÑ\80гÑ\8d Ð±Ð°Ñ\80Ñ\8bлларын эмиэ киллэр",
+       "listfiles-show-all": "Ð\91илÑ\8d Ñ\8dÑ\80гÑ\8d Ñ\82оÑ\80Ñ\83мнарын эмиэ киллэр",
        "listfiles-latestversion": "Билиҥҥи барыла",
        "listfiles-latestversion-yes": "Сөп",
        "listfiles-latestversion-no": "Суох",
        "pageswithprop-legend": "Уларытыллыбыт туруоруулаах сирэйдэр",
        "pageswithprop-text": "Манна сорох туруоруулара уларытыллыбыт сирэйдэр көстүбүттэр.",
        "pageswithprop-prop": "Туруоруу аата:",
+       "pageswithprop-reverse": "Таҥнары наардаа",
+       "pageswithprop-sortbyvalue": "Көрдөрүүтүнэн наардаа",
        "pageswithprop-submit": "Толор",
        "pageswithprop-prophidden-long": "уһун тиэкис кистэммит ($1)",
        "pageswithprop-prophidden-binary": "бинаар суолта кистэммит ($1)",
        "enotif_lastdiff": "Уларытыыны манна көр: $1",
        "enotif_anon_editor": "ааттамматах кыттааччы $1",
        "enotif_body": "Аламай күн сырдыгынан, $WATCHINGUSERNAME!\n\n$PAGEINTRO $NEWPAGE\n\nУларытыы кылгас ис хоһооно: $PAGESUMMARY $PAGEMINOREDIT\n\nУларыппыт киһиэхэ суруйуоххун сөп:\nэл. почта: $PAGEEDITOR_EMAIL\nбиики: $PAGEEDITOR_WIKI\n\nБу сирэйи бэлиэтэммит ааккынан киирэн көрбөтөххүнэ уларыйбытын туһунан биллэриилэр кэлиэхтэрэ суоҕа. Биллэриилэри аналлаах сирэйгэ отой арааран кэбиһиэххин эмиэ сөп.\n\n             Бары үтүөнү кытта, {{SITENAME}} биллэрэр тиһигэ\n\n--\nБиллэрии кэлэрин салайыы\n{{canonicalurl:{{#special:Preferences}}}}\n\nКэтиир тиһиги уларытыы\n{{canonicalurl:{{#special:EditWatchlist}}}}\n\nКэтиир тиһиктэн сирэйдэри сотуу\n$UNWATCHURL\n\nКөмө\n$HELPPAGE",
+       "enotif_minoredit": "Бу улахан суолтата суох уларытыы",
        "created": "айыллыбыт",
        "changed": "уларыппыт (уларытыллыбыт)",
        "deletepage": "Сирэйи сот",
        "delete-warning-toobig": "Бу сирэй уларыылара уһун историялаах, хас да ($1) {{PLURAL:$1|хат көрүүлээх|хат көрүүлэрдээх}}. Маны соттоххуна, {{SITENAME}} билэтин тиһигин алдьатыан сөп; салгыыр буоллаххына сэрэнэн үлэлээ.",
        "deleteprotected": "Бу сирэйи, көмүскэллээх буолан, сотор кыаҕыҥ суох эбит.",
        "deleting-backlinks-warning": "<strong>Сэрэтии.</strong>\nСотоору гынар сирэйгэр [[Special:WhatLinksHere/{{FULLPAGENAME}}|атын сирэйдэр]] сигэнэллэр эбит.",
+       "deleting-subpages-warning": "<strong>Сэрэтии:</strong> Сотоору гынар сирэйиҥ анныгар [[Special:PrefixIndex/{{FULLPAGENAME}}/|{{PLURAL:$1|$1 сирэй|51=50-тан тахса сирэй}} баар эбит]].",
        "rollback": "Уруккутугар төннөр",
        "rollbacklink": "төннөр",
        "rollbacklinkcount": "$1 көннөрүүнү суох гын",
        "editcomment": "Уларытыыны маннык быһаарбыттар: <em>$1</em>.",
        "revertpage": "([[User talk:$2|Ырытыы]]) көннөрүүлэрэ: [[Special:Contributions/$2|$2]] бу торумҥа: [[User:$1|$1]] төннөрүлүннүлэр",
        "revertpage-nouser": "Аата кистэммит киһи уларытыылара суох оҥоһуллан, ыстатыйа бу киһи барылыгар төннөрүлүннэ: {{GENDER:$1|[[User:$1|$1]]}}",
-       "rollback-success": "$1 көннөрүүлэр бу торумҥа төннөрүлүннүлэр: $2.",
+       "rollback-success": "{{GENDER:$3|$1}} көннөрүүтэ сотулунна; {{GENDER:$4|$2}} барылыгар төннөрүлүннэ.",
        "rollback-success-notify": "$1 уларытыылара сотулуннулар; \n$2 тиһэх торумугар төннөрүлүннэ. [$3 Уларытыыны көрдөр]",
        "sessionfailure-title": "Сиэссийэ алҕаһа",
        "sessionfailure": "Арааһа туох эрэ сатаммата, дьайыыҥ оҥоһуллубата. Браузергар \"Төнүн\" тимэҕи баттаа уонна бу иннинээҕи сирэйгин иккистээн киллэрэн көр.",
        "undelete-search-title": "Сотуллубут сирэйдэри көрдөөһүн",
        "undelete-search-box": "Сотуллубут сирэйдэри көрдөөһүн",
        "undelete-search-prefix": "Мантан саҕаланар сирэйдэри көрдөө:",
+       "undelete-search-full": "Аатыгар манныктааҕы көрдөр:",
        "undelete-search-submit": "Көрдөө",
        "undelete-no-results": "Сотуллубут сирэйдэргэ эн көрдүүр сирэйиҥ көстүбэтэ.",
        "undelete-filename-mismatch": "Сирэй $1 кэмнээҕи торумун төннөрөр кыах суох: аата сөп түбэспэт",
        "tag-mw-contentmodelchange": "Иһинээҕи киэбин уларытыы сурунаала",
        "tag-mw-contentmodelchange-description": "Сирэй [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:ChangeContentModel ис тутулун уларытар] көннөрүүлэр",
        "tag-mw-new-redirect": "Саҥа утаарыы",
+       "tag-mw-new-redirect-description": "Саҥа утаарыыны оҥорор эбэтэр сирэйи утаарыы оҥорор уларытыылар",
        "tag-mw-removed-redirect": "Сотуллубут утаарыы",
        "tag-mw-removed-redirect-description": "Баар утаарыыны суох гынар уларытыылар",
        "tag-mw-changed-redirect-target": "Атын сиргэ утаарыы",
        "authprovider-confirmlink-request-label": "Ситимнэнэр бэлиэ-ааттар",
        "authprovider-confirmlink-success-line": "$1: ситимнэннэ.",
        "authprovider-confirmlink-failed": "Сороҕун эрэ ситимниир сатанна: $1",
+       "authprovider-confirmlink-ok-help": "Алҕас туһунан биллэрии кэнниттэн салгыырга.",
        "authprovider-resetpass-skip-label": "Аһар",
        "authprovider-resetpass-skip-help": "Аһарыгы хос ыытыыны көтүт.",
        "authform-nosession-login": "Этэҥҥэ киирдиҥ, ол эрээри браузерыҥ киирбиккин «долоҕойугар тохтотуо» суоҕа.\n\n$1",
        "restrictionsfield-label": "Көҥүллэммит IP диапазона:",
        "revid": "$1 торум",
        "pageid": "$1 сирэй нүөмэрэ",
+       "rawhtml-notallowed": "&lt;html&gt; тиэктэр көннөрү сирэйдэр эрэ истэригэр туттулаллар.",
        "gotointerwiki": "{{SITENAME}} сиртэн тахсарга",
        "gotointerwiki-invalid": "Аат алҕастаах.",
        "gotointerwiki-external": "[[$2]] диэн сиргэ бараары {{SITENAME}} сиртэн тахсан эрэҕин.\n\n'''[$1 Манна $1 көс]'''",
+       "undelete-cantedit": "Сөргүтэриҥ табыллыбата, тоҕо диэтэххэ бу сирэйи уларытар быраабыҥ суох эбит.",
+       "undelete-cantcreate": "Бу сирэйи сөргүтэриҥ табыллыбата, тоҕо диэтэххэ сотуллубут, саҥаны буоллаҕына оҥорор кыаҕыҥ суох эбит.",
+       "pagedata-title": "Сирэй туһунан",
        "pagedata-bad-title": "Алҕастаах аат: $1."
 }
index c9f5b5a..168bc5f 100644 (file)
        "searchrelated": "متعلقہ",
        "searchall": "یکے",
        "search-nonefound": "سوال دے نال رلدے ملدے نتارے کائنی۔",
+       "powersearch-legend": "اضافی ڳول",
+       "powersearch-ns": "ناں جائیں وچ ڳولو:",
        "powersearch-togglelabel": "ݙیکھو",
        "powersearch-toggleall": "یکے",
        "powersearch-togglenone": "کوئی وی کائنی",
        "userrights": "حقوق صارف",
        "userrights-lookup-user": "ورتُو چُݨو",
        "userrights-user-editname": "ورتݨ آلا ناں درج کرو:",
+       "userrights-groupsmember": "دا رکن ہے:",
        "userrights-reason": "سبب:",
+       "userrights-expiry-current": "مکسی $1",
+       "userrights-expiry-none": "لامحدود",
        "userrights-expiry": "مُکسی:",
        "userrights-expiry-othertime": "ٻیا ویلا:",
        "group": "گروپ:",
        "group-user": "ورتݨ آلے",
        "group-bot": "بوٹ",
        "group-sysop": "منتظمین",
+       "group-bureaucrat": "بیوروکریٹ",
        "group-all": "(سارے)",
        "group-user-member": "{{GENDER:$1|ورتݨ آلا}}",
+       "group-bot-member": "{{GENDER:$1|بوٹ}}",
        "grouppage-bot": "{{ns:project}}:بوٹ",
        "grouppage-sysop": "{{ns:project}}:ایڈمنسٹریٹر",
        "right-read": "ورقے پڑھو",
        "right-editmyoptions": "آپݨیاں ذاتی ترجیحاں لکھو",
        "grant-group-email": "ای میل بھیجو",
        "grant-createaccount": "کھاتے کھولو",
+       "grant-uploadfile": "نویاں فائلاں اپ لوڈ کرو",
        "grant-basic": "بنیادی حقوق",
        "newuserlogpage": "کھاتہ بݨاوݨ آلی لاگ",
        "rightslog": "ورتݨ والے دے حقاں دی لاگ",
index d91c401..e4be501 100644 (file)
@@ -35,7 +35,8 @@
                        "Zoranzoki21",
                        "Obsuser",
                        "Prevodim",
-                       "Acamicamacaraca"
+                       "Acamicamacaraca",
+                       "BokicaK"
                ]
        },
        "tog-underline": "Подвлачење веза:",
        "june-date": "$1 јун",
        "july-date": "$1 јул",
        "august-date": "$1 август",
-       "september-date": "$1 Ñ\81емпÑ\82ембаÑ\80",
+       "september-date": "$1 септембар",
        "october-date": "$1 окотобар",
        "november-date": "$1 новембар",
        "december-date": "$1 децембар",
index 751a131..9c1093b 100644 (file)
@@ -93,4 +93,4 @@ class SevenZipStream {
        }
 }
 
-stream_wrapper_register( 'mediawiki.compress.7z', 'SevenZipStream' );
+stream_wrapper_register( 'mediawiki.compress.7z', SevenZipStream::class );
index 861a613..5adbee5 100644 (file)
@@ -182,7 +182,7 @@ abstract class Maintenance {
                if ( $count < 2 ) {
                        return false; // sanity
                }
-               if ( $bt[0]['class'] !== 'Maintenance' || $bt[0]['function'] !== 'shouldExecute' ) {
+               if ( $bt[0]['class'] !== self::class || $bt[0]['function'] !== 'shouldExecute' ) {
                        return false; // last call should be to this function
                }
                $includeFuncs = [ 'require_once', 'require', 'include', 'include_once' ];
index b21bfbb..409afb5 100644 (file)
@@ -91,5 +91,5 @@ class AddRFCAndPMIDInterwiki extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = 'AddRFCAndPMIDInterwiki';
+$maintClass = AddRFCAndPMIDInterwiki::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 04158ae..4953343 100644 (file)
@@ -88,5 +88,5 @@ class AddSite extends Maintenance {
        }
 }
 
-$maintClass = 'AddSite';
+$maintClass = AddSite::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 36060d8..897972c 100644 (file)
@@ -88,5 +88,5 @@ class AttachLatest extends Maintenance {
        }
 }
 
-$maintClass = "AttachLatest";
+$maintClass = AttachLatest::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 00dbd00..ffc75c6 100644 (file)
@@ -82,15 +82,15 @@ class BackupDumper extends Maintenance {
                $this->stderr = fopen( "php://stderr", "wt" );
 
                // Built-in output and filter plugins
-               $this->registerOutput( 'file', 'DumpFileOutput' );
-               $this->registerOutput( 'gzip', 'DumpGZipOutput' );
-               $this->registerOutput( 'bzip2', 'DumpBZip2Output' );
-               $this->registerOutput( 'dbzip2', 'DumpDBZip2Output' );
-               $this->registerOutput( '7zip', 'Dump7ZipOutput' );
-
-               $this->registerFilter( 'latest', 'DumpLatestFilter' );
-               $this->registerFilter( 'notalk', 'DumpNotalkFilter' );
-               $this->registerFilter( 'namespace', 'DumpNamespaceFilter' );
+               $this->registerOutput( 'file', DumpFileOutput::class );
+               $this->registerOutput( 'gzip', DumpGZipOutput::class );
+               $this->registerOutput( 'bzip2', DumpBZip2Output::class );
+               $this->registerOutput( 'dbzip2', DumpDBZip2Output::class );
+               $this->registerOutput( '7zip', Dump7ZipOutput::class );
+
+               $this->registerFilter( 'latest', DumpLatestFilter::class );
+               $this->registerFilter( 'notalk', DumpNotalkFilter::class );
+               $this->registerFilter( 'namespace', DumpNamespaceFilter::class );
 
                // These three can be specified multiple times
                $this->addOption( 'plugin', 'Load a dump plugin class. Specify as <class>[:<file>].',
index 0e3cd73..5e1feb7 100644 (file)
@@ -59,5 +59,5 @@ class BenchHttpHttps extends Benchmarker {
        }
 }
 
-$maintClass = 'BenchHttpHttps';
+$maintClass = BenchHttpHttps::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 86bcc8a..f9b3a74 100644 (file)
@@ -73,5 +73,5 @@ class BenchWikimediaBaseConvert extends Benchmarker {
        }
 }
 
-$maintClass = 'BenchWikimediaBaseConvert';
+$maintClass = BenchWikimediaBaseConvert::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 0a999ec..794b743 100644 (file)
@@ -101,5 +101,5 @@ class BenchmarkDeleteTruncate extends Benchmarker {
        }
 }
 
-$maintClass = 'BenchmarkDeleteTruncate';
+$maintClass = BenchmarkDeleteTruncate::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 843ef7c..5f661f2 100644 (file)
@@ -106,5 +106,5 @@ class BenchIfSwitch extends Benchmarker {
        }
 }
 
-$maintClass = 'BenchIfSwitch';
+$maintClass = BenchIfSwitch::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 55c7159..2c065f6 100644 (file)
@@ -70,5 +70,5 @@ class BenchStrtrStrReplace extends Benchmarker {
        }
 }
 
-$maintClass = 'BenchStrtrStrReplace';
+$maintClass = BenchStrtrStrReplace::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 52b00f1..b13b863 100644 (file)
@@ -110,5 +110,5 @@ class BenchUtf8TitleCheck extends Benchmarker {
        }
 }
 
-$maintClass = 'BenchUtf8TitleCheck';
+$maintClass = BenchUtf8TitleCheck::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 960ef0e..6943182 100644 (file)
@@ -64,5 +64,5 @@ class BenchWfIsWindows extends Benchmarker {
        }
 }
 
-$maintClass = 'BenchWfIsWindows';
+$maintClass = BenchWfIsWindows::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 3eaa88d..a7d998d 100644 (file)
@@ -52,11 +52,11 @@ class BenchmarkCSSMin extends Benchmarker {
 
                $this->bench( [
                        "minify ($filename)" => [
-                               'function' => [ 'CSSMin', 'minify' ],
+                               'function' => [ CSSMin::class, 'minify' ],
                                'args' => [ $css ]
                        ],
                        "remap ($filename)" => [
-                               'function' => [ 'CSSMin', 'remap' ],
+                               'function' => [ CSSMin::class, 'remap' ],
                                'args' => [ $css, dirname( $file ), 'https://example.org/test/', true ]
                        ],
                ] );
@@ -72,5 +72,5 @@ class BenchmarkCSSMin extends Benchmarker {
        }
 }
 
-$maintClass = 'BenchmarkCSSMin';
+$maintClass = BenchmarkCSSMin::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index d49fa1d..0bfe039 100644 (file)
@@ -69,5 +69,5 @@ class BenchmarkHooks extends Benchmarker {
        }
 }
 
-$maintClass = 'BenchmarkHooks';
+$maintClass = BenchmarkHooks::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index fa93f23..fd66b3f 100644 (file)
@@ -58,5 +58,5 @@ class BenchmarkJSMinPlus extends Benchmarker {
        }
 }
 
-$maintClass = 'BenchmarkJSMinPlus';
+$maintClass = BenchmarkJSMinPlus::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index a613f96..3a79ad3 100644 (file)
@@ -188,5 +188,5 @@ class BenchmarkParse extends Maintenance {
        }
 }
 
-$maintClass = 'BenchmarkParse';
+$maintClass = BenchmarkParse::class;
 require RUN_MAINTENANCE_IF_MAIN;
index 8566c0b..cbab677 100644 (file)
@@ -114,5 +114,5 @@ class BenchmarkPurge extends Benchmarker {
        }
 }
 
-$maintClass = "BenchmarkPurge";
+$maintClass = BenchmarkPurge::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 6698db3..f2939b3 100644 (file)
@@ -74,5 +74,5 @@ class BenchmarkTidy extends Maintenance {
        }
 }
 
-$maintClass = 'BenchmarkTidy';
+$maintClass = BenchmarkTidy::class;
 require RUN_MAINTENANCE_IF_MAIN;
index d7db321..316004b 100644 (file)
@@ -69,5 +69,5 @@ class ChangePassword extends Maintenance {
        }
 }
 
-$maintClass = "ChangePassword";
+$maintClass = ChangePassword::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 6eafc96..b22432a 100644 (file)
@@ -60,5 +60,5 @@ class CheckBadRedirects extends Maintenance {
        }
 }
 
-$maintClass = "CheckBadRedirects";
+$maintClass = CheckBadRedirects::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 22f5969..69f16f5 100644 (file)
@@ -61,5 +61,5 @@ class CheckComposerLockUpToDate extends Maintenance {
        }
 }
 
-$maintClass = 'CheckComposerLockUpToDate';
+$maintClass = CheckComposerLockUpToDate::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 6fe15fb..f858f03 100644 (file)
@@ -82,5 +82,5 @@ class CheckImages extends Maintenance {
        }
 }
 
-$maintClass = "CheckImages";
+$maintClass = CheckImages::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 8416c8a..f001236 100644 (file)
@@ -62,5 +62,5 @@ class CheckLess extends Maintenance {
        }
 }
 
-$maintClass = 'CheckLess';
+$maintClass = CheckLess::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index f29f836..6c1343a 100644 (file)
@@ -65,5 +65,5 @@ class CheckUsernames extends Maintenance {
        }
 }
 
-$maintClass = "CheckUsernames";
+$maintClass = CheckUsernames::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index add967a..bcf4af2 100644 (file)
@@ -110,5 +110,5 @@ class CleanupAncientTables extends Maintenance {
        }
 }
 
-$maintClass = "CleanupAncientTables";
+$maintClass = CleanupAncientTables::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 41d492d..cbf0084 100644 (file)
@@ -148,5 +148,5 @@ class CleanupBlocks extends Maintenance {
        }
 }
 
-$maintClass = "CleanupBlocks";
+$maintClass = CleanupBlocks::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 2da45ca..546825b 100644 (file)
@@ -169,5 +169,5 @@ class CapsCleanup extends TableCleanup {
        }
 }
 
-$maintClass = "CapsCleanup";
+$maintClass = CapsCleanup::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 2d22704..786c20a 100644 (file)
@@ -199,5 +199,5 @@ TEXT
        }
 }
 
-$maintClass = 'CleanupEmptyCategories';
+$maintClass = CleanupEmptyCategories::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index e0da027..fbdc7c2 100644 (file)
@@ -220,5 +220,5 @@ class ImageCleanup extends TableCleanup {
        }
 }
 
-$maintClass = "ImageCleanup";
+$maintClass = ImageCleanup::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 569fd2b..54ed3aa 100644 (file)
@@ -307,5 +307,5 @@ TEXT
        }
 }
 
-$maintClass = 'CleanupInvalidDbKeys';
+$maintClass = CleanupInvalidDbKeys::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 6e58ae9..a55b539 100644 (file)
@@ -48,5 +48,5 @@ class CleanupPreferences extends Maintenance {
        }
 }
 
-$maintClass = 'CleanupPreferences'; // Tells it to run the class
+$maintClass = CleanupPreferences::class; // Tells it to run the class
 require_once RUN_MAINTENANCE_IF_MAIN;
index a6f10c6..63838d2 100644 (file)
@@ -77,5 +77,5 @@ class CleanupRemovedModules extends Maintenance {
        }
 }
 
-$maintClass = 'CleanupRemovedModules';
+$maintClass = CleanupRemovedModules::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 3d039fa..038b28c 100644 (file)
@@ -156,5 +156,5 @@ class CleanupSpam extends Maintenance {
        }
 }
 
-$maintClass = "CleanupSpam";
+$maintClass = CleanupSpam::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 24d6d86..8c782d9 100644 (file)
@@ -189,5 +189,5 @@ class TitleCleanup extends TableCleanup {
        }
 }
 
-$maintClass = "TitleCleanup";
+$maintClass = TitleCleanup::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index aeaf150..61cd9c2 100644 (file)
@@ -152,5 +152,5 @@ class UploadStashCleanup extends Maintenance {
        }
 }
 
-$maintClass = "UploadStashCleanup";
+$maintClass = UploadStashCleanup::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 74167d1..3763d3b 100644 (file)
@@ -208,5 +208,5 @@ class CleanupUsersWithNoId extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = "CleanupUsersWithNoId";
+$maintClass = CleanupUsersWithNoId::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 9728ac5..64d39dd 100644 (file)
@@ -95,5 +95,5 @@ class WatchlistCleanup extends TableCleanup {
        }
 }
 
-$maintClass = "WatchlistCleanup";
+$maintClass = WatchlistCleanup::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index ce19974..2e1f7c9 100644 (file)
@@ -54,5 +54,5 @@ class ClearInterwikiCache extends Maintenance {
        }
 }
 
-$maintClass = "ClearInterwikiCache";
+$maintClass = ClearInterwikiCache::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 3329958..8232d52 100644 (file)
@@ -67,5 +67,5 @@ class CommandLineInc extends Maintenance {
        }
 }
 
-$maintClass = 'CommandLineInc';
+$maintClass = CommandLineInc::class;
 require RUN_MAINTENANCE_IF_MAIN;
index afbb268..b12974b 100644 (file)
@@ -108,5 +108,5 @@ class CompareParserCache extends Maintenance {
        }
 }
 
-$maintClass = "CompareParserCache";
+$maintClass = CompareParserCache::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 3b09385..fe6e604 100644 (file)
@@ -185,5 +185,5 @@ class CompareParsers extends DumpIterator {
        }
 }
 
-$maintClass = "CompareParsers";
+$maintClass = CompareParsers::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 24391c1..0205311 100644 (file)
@@ -63,7 +63,7 @@ class ConvertExtensionToRegistration extends Maintenance {
        }
 
        protected function getAllGlobals() {
-               $processor = new ReflectionClass( 'ExtensionProcessor' );
+               $processor = new ReflectionClass( ExtensionProcessor::class );
                $settings = $processor->getProperty( 'globalSettings' );
                $settings->setAccessible( true );
                return array_merge( $settings->getValue(), $this->formerGlobals );
@@ -303,5 +303,5 @@ class ConvertExtensionToRegistration extends Maintenance {
        }
 }
 
-$maintClass = 'ConvertExtensionToRegistration';
+$maintClass = ConvertExtensionToRegistration::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 54c0eda..8cd0297 100644 (file)
@@ -302,5 +302,5 @@ class ConvertLinks extends Maintenance {
        }
 }
 
-$maintClass = "ConvertLinks";
+$maintClass = ConvertLinks::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 501f045..c1a096f 100644 (file)
@@ -120,5 +120,5 @@ class ConvertUserOptions extends Maintenance {
        }
 }
 
-$maintClass = "ConvertUserOptions";
+$maintClass = ConvertUserOptions::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index b46cac7..3c7ffba 100644 (file)
@@ -374,5 +374,5 @@ class CopyFileBackend extends Maintenance {
        }
 }
 
-$maintClass = 'CopyFileBackend';
+$maintClass = CopyFileBackend::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 7dd40b8..dc70e9c 100644 (file)
@@ -94,5 +94,5 @@ class CopyJobQueue extends Maintenance {
        }
 }
 
-$maintClass = 'CopyJobQueue';
+$maintClass = CopyJobQueue::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 8035c3e..d3efca6 100644 (file)
@@ -150,5 +150,5 @@ class CreateAndPromote extends Maintenance {
        }
 }
 
-$maintClass = "CreateAndPromote";
+$maintClass = CreateAndPromote::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index e77113a..ef5a30d 100644 (file)
@@ -114,5 +114,5 @@ class GenerateCommonPassword extends Maintenance {
        }
 }
 
-$maintClass = "GenerateCommonPassword";
+$maintClass = GenerateCommonPassword::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 0f33a14..d010073 100644 (file)
@@ -130,5 +130,5 @@ class DeleteArchivedFiles extends Maintenance {
        }
 }
 
-$maintClass = "DeleteArchivedFiles";
+$maintClass = DeleteArchivedFiles::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 905b5d9..e441951 100644 (file)
@@ -61,5 +61,5 @@ class DeleteArchivedRevisions extends Maintenance {
        }
 }
 
-$maintClass = "DeleteArchivedRevisions";
+$maintClass = DeleteArchivedRevisions::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index c3cbdeb..0f3c506 100644 (file)
@@ -123,5 +123,5 @@ class DeleteBatch extends Maintenance {
        }
 }
 
-$maintClass = "DeleteBatch";
+$maintClass = DeleteBatch::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 417aa03..c52013b 100644 (file)
@@ -95,5 +95,5 @@ class DeleteDefaultMessages extends Maintenance {
        }
 }
 
-$maintClass = "DeleteDefaultMessages";
+$maintClass = DeleteDefaultMessages::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 2a1fe22..cd9ef11 100644 (file)
@@ -202,5 +202,5 @@ class DeleteEqualMessages extends Maintenance {
        }
 }
 
-$maintClass = "DeleteEqualMessages";
+$maintClass = DeleteEqualMessages::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index aa11cd9..fc43e22 100644 (file)
@@ -99,5 +99,5 @@ class DeleteOldRevisions extends Maintenance {
        }
 }
 
-$maintClass = "DeleteOldRevisions";
+$maintClass = DeleteOldRevisions::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 4d60070..8d3f6b3 100644 (file)
@@ -98,5 +98,5 @@ class DeleteOrphanedRevisions extends Maintenance {
        }
 }
 
-$maintClass = "DeleteOrphanedRevisions";
+$maintClass = DeleteOrphanedRevisions::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index ab25784..20d5c2f 100644 (file)
@@ -54,5 +54,5 @@ class DeleteSelfExternals extends Maintenance {
        }
 }
 
-$maintClass = "DeleteSelfExternals";
+$maintClass = DeleteSelfExternals::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index ad75c6b..f3fb32c 100644 (file)
@@ -34,7 +34,7 @@ if ( !defined( 'RUN_MAINTENANCE_IF_MAIN' ) ) {
 // Wasn't included from the file scope, halt execution (probably wanted the class)
 // If a class is using commandLine.inc (old school maintenance), they definitely
 // cannot be included and will proceed with execution
-if ( !Maintenance::shouldExecute() && $maintClass != 'CommandLineInc' ) {
+if ( !Maintenance::shouldExecute() && $maintClass != CommandLineInc::class ) {
        return;
 }
 
@@ -69,7 +69,7 @@ if ( !defined( 'MW_SETUP_CALLBACK' ) ) {
                                && ( $wgLocalisationCacheConf['store'] == 'db'
                                        || ( $wgLocalisationCacheConf['store'] == 'detect' && !$wgCacheDirectory ) )
                        ) {
-                               $wgLocalisationCacheConf['storeClass'] = 'LCStoreNull';
+                               $wgLocalisationCacheConf['storeClass'] = LCStoreNull::class;
                        }
                }
 
index 4890199..6bbd86d 100644 (file)
@@ -133,5 +133,5 @@ TEXT
        }
 }
 
-$maintClass = 'DumpBackup';
+$maintClass = DumpBackup::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 3467932..e4bd756 100644 (file)
@@ -180,5 +180,5 @@ class DumpCategoriesAsRdf extends Maintenance {
        }
 }
 
-$maintClass = "DumpCategoriesAsRdf";
+$maintClass = DumpCategoriesAsRdf::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 707f4b3..e9a6bc5 100644 (file)
@@ -105,7 +105,7 @@ abstract class DumpIterator extends Maintenance {
                if ( $this->getDbType() == Maintenance::DB_NONE ) {
                        global $wgUseDatabaseMessages, $wgLocalisationCacheConf, $wgHooks;
                        $wgUseDatabaseMessages = false;
-                       $wgLocalisationCacheConf['storeClass'] = 'LCStoreNull';
+                       $wgLocalisationCacheConf['storeClass'] = LCStoreNull::class;
                        $wgHooks['InterwikiLoadPrefix'][] = 'DumpIterator::disableInterwikis';
                }
        }
@@ -185,5 +185,5 @@ class SearchDump extends DumpIterator {
        }
 }
 
-$maintClass = "SearchDump";
+$maintClass = SearchDump::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index ff4e894..6904953 100644 (file)
@@ -75,5 +75,5 @@ class DumpLinks extends Maintenance {
        }
 }
 
-$maintClass = "DumpLinks";
+$maintClass = DumpLinks::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index e18d0b8..fdc36c7 100644 (file)
@@ -986,5 +986,5 @@ TEXT
        }
 }
 
-$maintClass = 'TextPassDumper';
+$maintClass = TextPassDumper::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 8d63fe5..4bfc574 100644 (file)
@@ -124,5 +124,5 @@ By default, outputs relative paths against the parent directory of $wgUploadDire
        }
 }
 
-$maintClass = "UploadDumper";
+$maintClass = UploadDumper::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 7e50e9e..60ed252 100644 (file)
@@ -103,5 +103,5 @@ class EditCLI extends Maintenance {
        }
 }
 
-$maintClass = "EditCLI";
+$maintClass = EditCLI::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 24ef1ed..ef6d3d8 100644 (file)
@@ -115,5 +115,5 @@ class EraseArchivedFile extends Maintenance {
        }
 }
 
-$maintClass = "EraseArchivedFile";
+$maintClass = EraseArchivedFile::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 542bdda..2462eaf 100644 (file)
@@ -52,5 +52,5 @@ class ExportSites extends Maintenance {
 
 }
 
-$maintClass = 'ExportSites';
+$maintClass = ExportSites::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 9c5a375..bc4fa31 100644 (file)
@@ -92,5 +92,5 @@ class FetchText extends Maintenance {
        }
 }
 
-$maintClass = "FetchText";
+$maintClass = FetchText::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 4b6c619..a60942f 100644 (file)
@@ -141,5 +141,5 @@ class TestFileOpPerformance extends Maintenance {
        }
 }
 
-$maintClass = "TestFileOpPerformance";
+$maintClass = TestFileOpPerformance::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index ec998da..ae2ee42 100644 (file)
@@ -202,5 +202,5 @@ class FindDeprecated extends Maintenance {
        }
 }
 
-$maintClass = 'FindDeprecated';
+$maintClass = FindDeprecated::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 6a21a61..04c00e2 100644 (file)
@@ -349,5 +349,5 @@ class FindHooks extends Maintenance {
        }
 }
 
-$maintClass = 'FindHooks';
+$maintClass = FindHooks::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 8bf2bdb..4997cab 100644 (file)
@@ -115,5 +115,5 @@ class FindMissingFiles extends Maintenance {
        }
 }
 
-$maintClass = 'FindMissingFiles';
+$maintClass = FindMissingFiles::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 522bbc2..57e04e0 100644 (file)
@@ -151,5 +151,5 @@ class FindOrphanedFiles extends Maintenance {
        }
 }
 
-$maintClass = 'FindOrphanedFiles';
+$maintClass = FindOrphanedFiles::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 7262770..cb4eddf 100644 (file)
@@ -124,5 +124,5 @@ class FixDefaultJsonContentPages extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = 'FixDefaultJsonContentPages';
+$maintClass = FixDefaultJsonContentPages::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 7e29f09..a76617a 100644 (file)
@@ -136,5 +136,5 @@ class FixDoubleRedirects extends Maintenance {
        }
 }
 
-$maintClass = "FixDoubleRedirects";
+$maintClass = FixDoubleRedirects::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 97cd37e..c70b8be 100644 (file)
@@ -95,5 +95,5 @@ class FixExtLinksProtocolRelative extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = "FixExtLinksProtocolRelative";
+$maintClass = FixExtLinksProtocolRelative::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 1efbc5f..32ff985 100644 (file)
@@ -125,5 +125,5 @@ class FixTimestamps extends Maintenance {
        }
 }
 
-$maintClass = "FixTimestamps";
+$maintClass = FixTimestamps::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 30364c6..57fd91b 100644 (file)
@@ -87,5 +87,5 @@ class FixUserRegistration extends Maintenance {
        }
 }
 
-$maintClass = "FixUserRegistration";
+$maintClass = FixUserRegistration::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 95d90c1..dbaeb86 100644 (file)
@@ -72,5 +72,5 @@ class MaintenanceFormatInstallDoc extends Maintenance {
        }
 }
 
-$maintClass = 'MaintenanceFormatInstallDoc';
+$maintClass = MaintenanceFormatInstallDoc::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index ec32aee..efddfb3 100644 (file)
@@ -192,5 +192,5 @@ class GenerateJsonI18n extends Maintenance {
        }
 }
 
-$maintClass = "GenerateJsonI18n";
+$maintClass = GenerateJsonI18n::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 4a70aaa..5a2c6c7 100644 (file)
@@ -555,5 +555,5 @@ class GenerateSitemap extends Maintenance {
        }
 }
 
-$maintClass = "GenerateSitemap";
+$maintClass = GenerateSitemap::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 18dcc22..de6e87a 100644 (file)
@@ -192,5 +192,5 @@ class GetConfiguration extends Maintenance {
        }
 }
 
-$maintClass = "GetConfiguration";
+$maintClass = GetConfiguration::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index ad2fdf8..c2c7983 100644 (file)
@@ -75,5 +75,5 @@ class GetLagTimes extends Maintenance {
        }
 }
 
-$maintClass = "GetLagTimes";
+$maintClass = GetLagTimes::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 6e0a1fe..43e876e 100644 (file)
@@ -51,5 +51,5 @@ class GetSlaveServer extends Maintenance {
        }
 }
 
-$maintClass = "GetSlaveServer";
+$maintClass = GetSlaveServer::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 21a183b..2e8cf77 100644 (file)
@@ -62,5 +62,5 @@ class GetTextMaint extends Maintenance {
        }
 }
 
-$maintClass = "GetTextMaint";
+$maintClass = GetTextMaint::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index f77f5b9..cef0dad 100644 (file)
@@ -157,5 +157,5 @@ class HHVMMakeRepo extends Maintenance {
        }
 }
 
-$maintClass = 'HHVMMakeRepo';
+$maintClass = HHVMMakeRepo::class;
 require RUN_MAINTENANCE_IF_MAIN;
index 2d71b87..d84e02f 100755 (executable)
@@ -24,5 +24,5 @@ class RunHipHopServer extends Maintenance {
                exit( $ret );
        }
 }
-$maintClass = 'RunHipHopServer';
+$maintClass = RunHipHopServer::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 918c1ab..965906f 100644 (file)
@@ -346,5 +346,5 @@ TEXT
        }
 }
 
-$maintClass = 'BackupReader';
+$maintClass = BackupReader::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index a72ec67..eb13dd1 100644 (file)
@@ -519,5 +519,5 @@ class ImportImages extends Maintenance {
 
 }
 
-$maintClass = 'ImportImages';
+$maintClass = ImportImages::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 7fdb355..e60e776 100644 (file)
@@ -114,5 +114,5 @@ class ImportSiteScripts extends Maintenance {
        }
 }
 
-$maintClass = 'ImportSiteScripts';
+$maintClass = ImportSiteScripts::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 5722344..be6cc05 100644 (file)
@@ -50,5 +50,5 @@ class ImportSites extends Maintenance {
        }
 }
 
-$maintClass = 'ImportSites';
+$maintClass = ImportSites::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 4681003..c99aa15 100644 (file)
@@ -204,5 +204,5 @@ class ImportTextFiles extends Maintenance {
        }
 }
 
-$maintClass = "ImportTextFiles";
+$maintClass = ImportTextFiles::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 96aea03..3c4336f 100644 (file)
@@ -101,5 +101,5 @@ in the load balancer, usually indicating a replication environment.' );
        }
 }
 
-$maintClass = "InitEditCount";
+$maintClass = InitEditCount::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index b2530ce..297544d 100644 (file)
@@ -78,5 +78,5 @@ class InitSiteStats extends Maintenance {
        }
 }
 
-$maintClass = "InitSiteStats";
+$maintClass = InitSiteStats::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 7b7cf15..1ab880c 100644 (file)
@@ -80,5 +80,5 @@ class InitUserPreference extends Maintenance {
        }
 }
 
-$maintClass = 'InitUserPreference'; // Tells it to run the class
+$maintClass = InitUserPreference::class; // Tells it to run the class
 require_once RUN_MAINTENANCE_IF_MAIN;
index c996530..d170c15 100644 (file)
@@ -168,6 +168,6 @@ class CommandLineInstaller extends Maintenance {
        }
 }
 
-$maintClass = 'CommandLineInstaller';
+$maintClass = CommandLineInstaller::class;
 
 require_once RUN_MAINTENANCE_IF_MAIN;
index 6e62cd1..8d877a5 100644 (file)
@@ -90,5 +90,5 @@ class InvalidateUserSesssions extends Maintenance {
        }
 }
 
-$maintClass = "InvalidateUserSesssions";
+$maintClass = InvalidateUserSesssions::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 49b945c..deac4af 100644 (file)
@@ -73,5 +73,5 @@ class JSParseHelper extends Maintenance {
        }
 }
 
-$maintClass = "JSParseHelper";
+$maintClass = JSParseHelper::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index fa2bd54..f041e15 100644 (file)
@@ -68,5 +68,5 @@ class DatabaseLag extends Maintenance {
        }
 }
 
-$maintClass = "DatabaseLag";
+$maintClass = DatabaseLag::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 931718f..684f4d2 100644 (file)
@@ -43,5 +43,5 @@ class AllTrans extends Maintenance {
        }
 }
 
-$maintClass = "AllTrans";
+$maintClass = AllTrans::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 2142c24..f93c506 100644 (file)
@@ -78,5 +78,5 @@ class DateFormats extends Maintenance {
        }
 }
 
-$maintClass = "DateFormats";
+$maintClass = DateFormats::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index bb1f3d2..9aacf51 100644 (file)
@@ -65,5 +65,5 @@ class Digit2Html extends Maintenance {
        }
 }
 
-$maintClass = "Digit2Html";
+$maintClass = Digit2Html::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 37c87a8..543ee06 100644 (file)
@@ -48,5 +48,5 @@ class DumpMessages extends Maintenance {
        }
 }
 
-$maintClass = "DumpMessages";
+$maintClass = DumpMessages::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 141f1ea..85949d8 100644 (file)
@@ -464,5 +464,5 @@ class UcdXmlReader {
        }
 }
 
-$maintClass = 'GenerateCollationData';
+$maintClass = GenerateCollationData::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 4338a17..90ca41e 100644 (file)
@@ -127,5 +127,5 @@ class GenerateNormalizerDataAr extends Maintenance {
        }
 }
 
-$maintClass = 'GenerateNormalizerDataAr';
+$maintClass = GenerateNormalizerDataAr::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index a84ffb0..664f06c 100644 (file)
@@ -66,5 +66,5 @@ class GenerateNormalizerDataMl extends Maintenance {
        }
 }
 
-$maintClass = 'GenerateNormalizerDataMl';
+$maintClass = GenerateNormalizerDataMl::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index cb989bc..6f2c6ad 100644 (file)
@@ -61,5 +61,5 @@ class LangMemUsage extends Maintenance {
        }
 }
 
-$maintClass = "LangMemUsage";
+$maintClass = LangMemUsage::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index e8d0e76..4098e0c 100644 (file)
@@ -69,5 +69,5 @@ class ListVariants extends Maintenance {
        }
 }
 
-$maintClass = 'ListVariants';
+$maintClass = ListVariants::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index cfd5fc2..d4ce931 100644 (file)
@@ -64,5 +64,5 @@ class MakeTestEdits extends Maintenance {
        }
 }
 
-$maintClass = "MakeTestEdits";
+$maintClass = MakeTestEdits::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index c1b038c..488c915 100644 (file)
@@ -93,5 +93,5 @@ class ManageJobs extends Maintenance {
        }
 }
 
-$maintClass = "ManageJobs";
+$maintClass = ManageJobs::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 14df53c..c976bd7 100644 (file)
@@ -102,5 +102,5 @@ class McTest extends Maintenance {
        }
 }
 
-$maintClass = "McTest";
+$maintClass = McTest::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 7d85259..51c41db 100644 (file)
@@ -26,7 +26,7 @@
 define( 'MW_NO_EXTENSION_MESSAGES', 1 );
 
 require_once __DIR__ . '/Maintenance.php';
-$maintClass = 'MergeMessageFileList';
+$maintClass = MergeMessageFileList::class;
 $mmfl = false;
 
 /**
index dd78a7d..e9beaa3 100644 (file)
@@ -155,5 +155,5 @@ class MigrateArchiveText extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = "MigrateArchiveText";
+$maintClass = MigrateArchiveText::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index c000871..c35315d 100644 (file)
@@ -291,5 +291,5 @@ class MigrateComments extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = "MigrateComments";
+$maintClass = MigrateComments::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 536eddd..6188ea1 100644 (file)
@@ -235,5 +235,5 @@ class MigrateFileRepoLayout extends Maintenance {
        }
 }
 
-$maintClass = 'MigrateFileRepoLayout';
+$maintClass = MigrateFileRepoLayout::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 703d97f..eeaddba 100644 (file)
@@ -106,5 +106,5 @@ class MigrateUserGroup extends Maintenance {
        }
 }
 
-$maintClass = "MigrateUserGroup";
+$maintClass = MigrateUserGroup::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 540a4d9..ddae17d 100644 (file)
@@ -129,5 +129,5 @@ class MinifyScript extends Maintenance {
        }
 }
 
-$maintClass = 'MinifyScript';
+$maintClass = MinifyScript::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 9c53daa..090c3d4 100644 (file)
@@ -122,5 +122,5 @@ class MoveBatch extends Maintenance {
        }
 }
 
-$maintClass = "MoveBatch";
+$maintClass = MoveBatch::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 9447268..2d6a0be 100644 (file)
@@ -165,5 +165,5 @@ TEXT
        }
 }
 
-$maintClass = 'MWDocGen';
+$maintClass = MWDocGen::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 84d4533..3c83921 100644 (file)
@@ -616,5 +616,5 @@ class NamespaceConflictChecker extends Maintenance {
        }
 }
 
-$maintClass = "NamespaceConflictChecker";
+$maintClass = NamespaceConflictChecker::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index e735aed..ee1f59c 100644 (file)
@@ -88,7 +88,7 @@ class NukeNS extends Maintenance {
                                        $dbw->query( "DELETE FROM $tbl_pag WHERE page_id = $id" );
                                        $this->commitTransaction( $dbw, __METHOD__ );
                                        // Delete revisions as appropriate
-                                       $child = $this->runChild( 'NukePage', 'nukePage.php' );
+                                       $child = $this->runChild( NukePage::class, 'nukePage.php' );
                                        $child->deleteRevisions( $revs );
                                        $this->purgeRedundantText( true );
                                        $n_deleted++;
@@ -118,5 +118,5 @@ class NukeNS extends Maintenance {
        }
 }
 
-$maintClass = "NukeNS";
+$maintClass = NukeNS::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index e27324a..baead94 100644 (file)
@@ -115,5 +115,5 @@ class NukePage extends Maintenance {
        }
 }
 
-$maintClass = "NukePage";
+$maintClass = NukePage::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index ed412da..7f997cb 100644 (file)
@@ -93,5 +93,5 @@ class AlterSharedConstraints extends Maintenance {
        }
 }
 
-$maintClass = "AlterSharedConstraints";
+$maintClass = AlterSharedConstraints::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 54a68ae..a1cf166 100644 (file)
@@ -252,5 +252,5 @@ class Orphans extends Maintenance {
        }
 }
 
-$maintClass = "Orphans";
+$maintClass = Orphans::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 24ec8cb..dc9bbda 100644 (file)
@@ -49,5 +49,5 @@ class PageExists extends Maintenance {
        }
 }
 
-$maintClass = "PageExists";
+$maintClass = PageExists::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 6279a34..b87a716 100644 (file)
@@ -140,5 +140,5 @@ class CLIParser extends Maintenance {
        }
 }
 
-$maintClass = "CLIParser";
+$maintClass = CLIParser::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index bc21140..3ba962f 100644 (file)
@@ -66,5 +66,5 @@ class PatchSql extends Maintenance {
        }
 }
 
-$maintClass = "PatchSql";
+$maintClass = PatchSql::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index f5f1de6..23144e9 100644 (file)
@@ -94,5 +94,5 @@ class PopulateBacklinkNamespace extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = "PopulateBacklinkNamespace";
+$maintClass = PopulateBacklinkNamespace::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 5dccdd6..f2a0007 100644 (file)
@@ -150,5 +150,5 @@ TEXT
        }
 }
 
-$maintClass = "PopulateCategory";
+$maintClass = PopulateCategory::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index a4fac05..8d64dae 100644 (file)
@@ -250,5 +250,5 @@ class PopulateContentModel extends Maintenance {
        }
 }
 
-$maintClass = 'PopulateContentModel';
+$maintClass = PopulateContentModel::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index cbd969d..7c094be 100644 (file)
@@ -104,5 +104,5 @@ class PopulateFilearchiveSha1 extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = "PopulateFilearchiveSha1";
+$maintClass = PopulateFilearchiveSha1::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 84b65ee..212a20d 100644 (file)
@@ -178,5 +178,5 @@ class PopulateImageSha1 extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = "PopulateImageSha1";
+$maintClass = PopulateImageSha1::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 2165820..fbe16de 100644 (file)
@@ -137,5 +137,5 @@ TEXT
        }
 }
 
-$maintClass = "PopulateIpChanges";
+$maintClass = PopulateIpChanges::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 979a28a..f960753 100644 (file)
@@ -169,5 +169,5 @@ class PopulateLogSearch extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = "PopulateLogSearch";
+$maintClass = PopulateLogSearch::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 6e8261a..2fe7ea6 100644 (file)
@@ -85,5 +85,5 @@ class PopulateLogUsertext extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = "PopulateLogUsertext";
+$maintClass = PopulateLogUsertext::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 98d535a..1ba7054 100644 (file)
@@ -100,5 +100,5 @@ class PopulatePPSortKey extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = 'PopulatePPSortKey';
+$maintClass = PopulatePPSortKey::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 99c2b23..39bc733 100644 (file)
@@ -127,5 +127,5 @@ class PopulateParentId extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = "PopulateParentId";
+$maintClass = PopulateParentId::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 0a53dd6..4ac3486 100644 (file)
@@ -104,5 +104,5 @@ class PopulateRecentChangesSource extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = "PopulateRecentChangesSource";
+$maintClass = PopulateRecentChangesSource::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index cc1a9f1..f83be9c 100644 (file)
@@ -157,5 +157,5 @@ class PopulateRevisionLength extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = "PopulateRevisionLength";
+$maintClass = PopulateRevisionLength::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 7ced779..54937ab 100644 (file)
@@ -217,5 +217,5 @@ class PopulateRevisionSha1 extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = "PopulateRevisionSha1";
+$maintClass = PopulateRevisionSha1::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 17d97b0..d540e8f 100644 (file)
@@ -67,7 +67,7 @@ class PreprocessDump extends DumpIterator {
                } elseif ( isset( $wgParserConf['preprocessorClass'] ) ) {
                        $name = $wgParserConf['preprocessorClass'];
                } else {
-                       $name = 'Preprocessor_DOM';
+                       $name = Preprocessor_DOM::class;
                }
 
                $wgParser->firstCallInit();
@@ -94,5 +94,5 @@ class PreprocessDump extends DumpIterator {
        }
 }
 
-$maintClass = "PreprocessDump";
+$maintClass = PreprocessDump::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index eae6154..b47476a 100644 (file)
@@ -89,5 +89,5 @@ class Protect extends Maintenance {
        }
 }
 
-$maintClass = "Protect";
+$maintClass = Protect::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 1035ff5..74298cb 100644 (file)
@@ -107,5 +107,5 @@ class PruneFileCache extends Maintenance {
        }
 }
 
-$maintClass = "PruneFileCache";
+$maintClass = PruneFileCache::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 9805452..7d5d40b 100644 (file)
@@ -258,5 +258,5 @@ class PurgeChangedFiles extends Maintenance {
        }
 }
 
-$maintClass = "PurgeChangedFiles";
+$maintClass = PurgeChangedFiles::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index cce9b03..22020e7 100644 (file)
@@ -190,5 +190,5 @@ class PurgeChangedPages extends Maintenance {
        }
 }
 
-$maintClass = "PurgeChangedPages";
+$maintClass = PurgeChangedPages::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index f5a085d..d0bbddf 100644 (file)
@@ -41,5 +41,5 @@ class PurgeExpiredUserrights extends Maintenance {
        }
 }
 
-$maintClass = "PurgeExpiredUserrights";
+$maintClass = PurgeExpiredUserrights::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 8cf217f..16a62f4 100644 (file)
@@ -143,5 +143,5 @@ class PurgeList extends Maintenance {
        }
 }
 
-$maintClass = "PurgeList";
+$maintClass = PurgeList::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 591f7ee..3b25629 100644 (file)
@@ -68,5 +68,5 @@ class PurgeModuleDeps extends Maintenance {
        }
 }
 
-$maintClass = 'PurgeModuleDeps';
+$maintClass = PurgeModuleDeps::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 1b78c7d..65d25c9 100644 (file)
@@ -41,5 +41,5 @@ class PurgeOldText extends Maintenance {
        }
 }
 
-$maintClass = "PurgeOldText";
+$maintClass = PurgeOldText::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 44d390e..df1403c 100644 (file)
@@ -74,5 +74,5 @@ class PurgePage extends Maintenance {
        }
 }
 
-$maintClass = "PurgePage";
+$maintClass = PurgePage::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 716be3a..dcd6d13 100644 (file)
@@ -93,5 +93,5 @@ class PurgeParserCache extends Maintenance {
        }
 }
 
-$maintClass = 'PurgeParserCache';
+$maintClass = PurgeParserCache::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index de09998..6f88f3d 100644 (file)
@@ -195,5 +195,5 @@ class ReassignEdits extends Maintenance {
        }
 }
 
-$maintClass = "ReassignEdits";
+$maintClass = ReassignEdits::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 1fc1daf..55ed4fa 100644 (file)
@@ -179,5 +179,5 @@ class RebuildFileCache extends Maintenance {
        }
 }
 
-$maintClass = "RebuildFileCache";
+$maintClass = RebuildFileCache::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 8fceedb..713492a 100644 (file)
@@ -233,5 +233,5 @@ class ImageBuilder extends Maintenance {
        }
 }
 
-$maintClass = 'ImageBuilder';
+$maintClass = ImageBuilder::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 8f92420..4213d5f 100644 (file)
@@ -177,5 +177,5 @@ class RebuildLocalisationCache extends Maintenance {
        }
 }
 
-$maintClass = "RebuildLocalisationCache";
+$maintClass = RebuildLocalisationCache::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 93e6d47..41fd863 100644 (file)
@@ -64,5 +64,5 @@ class RebuildSitesCache extends Maintenance {
 
 }
 
-$maintClass = "RebuildSitesCache";
+$maintClass = RebuildSitesCache::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 95822ca..30a5dd4 100644 (file)
@@ -44,24 +44,24 @@ class RebuildAll extends Maintenance {
                if ( $this->getDB( DB_REPLICA )->getType() != 'postgres' ) {
                        $this->output( "** Rebuilding fulltext search index (if you abort "
                                . "this will break searching; run this script again to fix):\n" );
-                       $rebuildText = $this->runChild( 'RebuildTextIndex', 'rebuildtextindex.php' );
+                       $rebuildText = $this->runChild( RebuildTextIndex::class, 'rebuildtextindex.php' );
                        $rebuildText->execute();
                }
 
                // Rebuild RC
                $this->output( "\n\n** Rebuilding recentchanges table:\n" );
-               $rebuildRC = $this->runChild( 'RebuildRecentchanges', 'rebuildrecentchanges.php' );
+               $rebuildRC = $this->runChild( RebuildRecentchanges::class, 'rebuildrecentchanges.php' );
                $rebuildRC->execute();
 
                // Rebuild link tables
                $this->output( "\n\n** Rebuilding links tables -- this can take a long time. "
                        . "It should be safe to abort via ctrl+C if you get bored.\n" );
-               $rebuildLinks = $this->runChild( 'RefreshLinks', 'refreshLinks.php' );
+               $rebuildLinks = $this->runChild( RefreshLinks::class, 'refreshLinks.php' );
                $rebuildLinks->execute();
 
                $this->output( "Done.\n" );
        }
 }
 
-$maintClass = "RebuildAll";
+$maintClass = RebuildAll::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index a47e50d..88eaf67 100644 (file)
@@ -53,5 +53,5 @@ class RebuildMessages extends Maintenance {
        }
 }
 
-$maintClass = "RebuildMessages";
+$maintClass = RebuildMessages::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index bbf91f5..f26d8b3 100644 (file)
@@ -495,5 +495,5 @@ class RebuildRecentchanges extends Maintenance {
        }
 }
 
-$maintClass = "RebuildRecentchanges";
+$maintClass = RebuildRecentchanges::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 0e41ff3..f06e62b 100644 (file)
@@ -157,5 +157,5 @@ class RebuildTextIndex extends Maintenance {
        }
 }
 
-$maintClass = "RebuildTextIndex";
+$maintClass = RebuildTextIndex::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 6a00d57..7e8f063 100644 (file)
@@ -168,5 +168,5 @@ TEXT
        }
 }
 
-$maintClass = 'RecountCategories';
+$maintClass = RecountCategories::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 3bae4b8..db8a19a 100644 (file)
@@ -152,5 +152,5 @@ class RefreshFileHeaders extends Maintenance {
        }
 }
 
-$maintClass = 'RefreshFileHeaders';
+$maintClass = RefreshFileHeaders::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index dcfed11..65db94d 100644 (file)
@@ -260,5 +260,5 @@ class RefreshImageMetadata extends Maintenance {
        }
 }
 
-$maintClass = 'RefreshImageMetadata';
+$maintClass = RefreshImageMetadata::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 4fab146..9d5d39f 100644 (file)
@@ -489,5 +489,5 @@ class RefreshLinks extends Maintenance {
        }
 }
 
-$maintClass = 'RefreshLinks';
+$maintClass = RefreshLinks::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 91025bf..ec68ef2 100644 (file)
@@ -74,5 +74,5 @@ class RemoveInvalidEmails extends Maintenance {
        }
 }
 
-$maintClass = 'RemoveInvalidEmails';
+$maintClass = RemoveInvalidEmails::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 767924f..0910c9c 100644 (file)
@@ -131,5 +131,5 @@ class RemoveUnusedAccounts extends Maintenance {
        }
 }
 
-$maintClass = "RemoveUnusedAccounts";
+$maintClass = RemoveUnusedAccounts::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 6aefc39..af8a280 100644 (file)
@@ -90,5 +90,5 @@ class RenameDbPrefix extends Maintenance {
        }
 }
 
-$maintClass = "RenameDbPrefix";
+$maintClass = RenameDbPrefix::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 458556f..cc5ae59 100644 (file)
@@ -123,5 +123,5 @@ class DumpRenderer extends Maintenance {
        }
 }
 
-$maintClass = "DumpRenderer";
+$maintClass = DumpRenderer::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index f59ce6c..d6b4b79 100644 (file)
@@ -68,5 +68,5 @@ class ResetUserEmail extends Maintenance {
        }
 }
 
-$maintClass = 'ResetUserEmail';
+$maintClass = ResetUserEmail::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 710198b..235b37f 100644 (file)
@@ -116,5 +116,5 @@ class ResetUserTokens extends Maintenance {
        }
 }
 
-$maintClass = "ResetUserTokens";
+$maintClass = ResetUserTokens::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index ca9abb1..34bc62b 100644 (file)
@@ -111,5 +111,5 @@ class RollbackEdits extends Maintenance {
        }
 }
 
-$maintClass = 'RollbackEdits';
+$maintClass = RollbackEdits::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index b0a2b92..64eca95 100644 (file)
@@ -111,5 +111,5 @@ class BatchedQueryRunner extends Maintenance {
        }
 }
 
-$maintClass = "BatchedQueryRunner";
+$maintClass = BatchedQueryRunner::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 0874538..51c52be 100644 (file)
@@ -118,5 +118,5 @@ class RunJobs extends Maintenance {
        }
 }
 
-$maintClass = "RunJobs";
+$maintClass = RunJobs::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 75b2e22..c8a8a45 100644 (file)
@@ -96,5 +96,5 @@ class MediaWikiShell extends Maintenance {
 
 }
 
-$maintClass = 'MediaWikiShell';
+$maintClass = MediaWikiShell::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 0c68032..b2fde8e 100644 (file)
@@ -105,5 +105,5 @@ class ShowJobs extends Maintenance {
        }
 }
 
-$maintClass = "ShowJobs";
+$maintClass = ShowJobs::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 5a15165..08f009b 100644 (file)
@@ -74,5 +74,5 @@ class ShowSiteStats extends Maintenance {
        }
 }
 
-$maintClass = "ShowSiteStats";
+$maintClass = ShowSiteStats::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index a67b28e..dd05bbe 100644 (file)
@@ -192,5 +192,5 @@ class MwSql extends Maintenance {
        }
 }
 
-$maintClass = "MwSql";
+$maintClass = MwSql::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index fbde417..5070745 100644 (file)
@@ -142,5 +142,5 @@ class SqliteMaintenance extends Maintenance {
        }
 }
 
-$maintClass = "SqliteMaintenance";
+$maintClass = SqliteMaintenance::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 4d56ef0..4414c5b 100644 (file)
@@ -471,5 +471,5 @@ class CompressOld extends Maintenance {
        }
 }
 
-$maintClass = 'CompressOld';
+$maintClass = CompressOld::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index d39acd4..5a537aa 100644 (file)
@@ -84,5 +84,5 @@ class DumpRev extends Maintenance {
        }
 }
 
-$maintClass = "DumpRev";
+$maintClass = DumpRev::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index e8bd23d..f6aa19b 100644 (file)
@@ -345,5 +345,5 @@ class FixT22757 extends Maintenance {
        }
 }
 
-$maintClass = 'FixT22757';
+$maintClass = FixT22757::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index eb72915..4feb95e 100644 (file)
@@ -80,5 +80,5 @@ class OrphanStats extends Maintenance {
        }
 }
 
-$maintClass = "OrphanStats";
+$maintClass = OrphanStats::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index c5dd53b..2a92140 100644 (file)
@@ -114,8 +114,8 @@ class RecompressTracked {
                        $GLOBALS['wgDebugLogPrefix'] = "RCT {$this->replicaId}: ";
                }
                $this->pageBlobClass = function_exists( 'xdiff_string_bdiff' ) ?
-                       'DiffHistoryBlob' : 'ConcatenatedGzipHistoryBlob';
-               $this->orphanBlobClass = 'ConcatenatedGzipHistoryBlob';
+                       DiffHistoryBlob::class : ConcatenatedGzipHistoryBlob::class;
+               $this->orphanBlobClass = ConcatenatedGzipHistoryBlob::class;
        }
 
        function debug( $msg ) {
index c23f508..6dee1a5 100644 (file)
@@ -111,5 +111,5 @@ SQL;
        }
 }
 
-$maintClass = 'StorageTypeStats';
+$maintClass = StorageTypeStats::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 028f11c..c3ed4fc 100644 (file)
@@ -45,7 +45,7 @@ if ( isset( $options['limit'] ) ) {
        $limit = 1000;
        $untilHappy = true;
 }
-$type = isset( $options['type'] ) ? $options['type'] : 'ConcatenatedGzipHistoryBlob';
+$type = isset( $options['type'] ) ? $options['type'] : ConcatenatedGzipHistoryBlob::class;
 
 $dbr = $this->getDB( DB_REPLICA );
 $revQuery = Revision::getQueryInfo( [ 'page', 'text' ] );
index 68afde7..49627c3 100644 (file)
@@ -303,5 +303,5 @@ class SyncFileBackend extends Maintenance {
        }
 }
 
-$maintClass = "SyncFileBackend";
+$maintClass = SyncFileBackend::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 9d7cc0e..0dd0341 100644 (file)
@@ -44,5 +44,5 @@ class TidyUpBug37714 extends Maintenance {
        }
 }
 
-$maintClass = 'TidyUpBug37714';
+$maintClass = TidyUpBug37714::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 278b68d..e9b2abd 100644 (file)
@@ -58,5 +58,5 @@ class Undelete extends Maintenance {
        }
 }
 
-$maintClass = "Undelete";
+$maintClass = Undelete::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index e60efdb..c780b6a 100755 (executable)
@@ -131,7 +131,7 @@ class UpdateMediaWiki extends Maintenance {
 
                // Check external dependencies are up to date
                if ( !$this->hasOption( 'skip-external-dependencies' ) ) {
-                       $composerLockUpToDate = $this->runChild( 'CheckComposerLockUpToDate' );
+                       $composerLockUpToDate = $this->runChild( CheckComposerLockUpToDate::class );
                        $composerLockUpToDate->execute();
                } else {
                        $this->output(
@@ -233,13 +233,13 @@ class UpdateMediaWiki extends Maintenance {
                # This needs to be disabled early since extensions will try to use the l10n
                # cache from $wgExtensionFunctions (T22471)
                $wgLocalisationCacheConf = [
-                       'class' => 'LocalisationCache',
-                       'storeClass' => 'LCStoreNull',
+                       'class' => LocalisationCache::class,
+                       'storeClass' => LCStoreNull::class,
                        'storeDirectory' => false,
                        'manualRecache' => false,
                ];
        }
 }
 
-$maintClass = 'UpdateMediaWiki';
+$maintClass = UpdateMediaWiki::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 213195d..c72e74f 100644 (file)
@@ -69,5 +69,5 @@ class UpdateArticleCount extends Maintenance {
        }
 }
 
-$maintClass = "UpdateArticleCount";
+$maintClass = UpdateArticleCount::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 84fc2d2..63176cb 100644 (file)
@@ -344,5 +344,5 @@ TEXT
        }
 }
 
-$maintClass = "UpdateCollation";
+$maintClass = UpdateCollation::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 12056c8..810af57 100644 (file)
@@ -77,5 +77,5 @@ class UpdateDoubleWidthSearch extends Maintenance {
        }
 }
 
-$maintClass = "UpdateDoubleWidthSearch";
+$maintClass = UpdateDoubleWidthSearch::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 264f4be..6233d5b 100644 (file)
@@ -65,5 +65,5 @@ class UpdateExtensionJsonSchema extends Maintenance {
        }
 }
 
-$maintClass = 'UpdateExtensionJsonSchema';
+$maintClass = UpdateExtensionJsonSchema::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index c4dccbc..cb40af3 100644 (file)
@@ -126,5 +126,5 @@ class UpdateRestrictions extends Maintenance {
        }
 }
 
-$maintClass = "UpdateRestrictions";
+$maintClass = UpdateRestrictions::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index cdb7d9f..af2d828 100644 (file)
@@ -121,5 +121,5 @@ class UpdateSearchIndex extends Maintenance {
        }
 }
 
-$maintClass = "UpdateSearchIndex";
+$maintClass = UpdateSearchIndex::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 58f23df..1c6f9b3 100644 (file)
@@ -170,5 +170,5 @@ class UpdateSpecialPages extends Maintenance {
        }
 }
 
-$maintClass = "UpdateSpecialPages";
+$maintClass = UpdateSpecialPages::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index eb8da57..4c9dcb4 100644 (file)
@@ -199,5 +199,5 @@ WARN
        }
 }
 
-$maintClass = 'UserOptionsMaintenance';
+$maintClass = UserOptionsMaintenance::class;
 require RUN_MAINTENANCE_IF_MAIN;
index ea27a7e..4b07796 100644 (file)
@@ -22,5 +22,5 @@ class ValidateRegistrationFile extends Maintenance {
        }
 }
 
-$maintClass = 'ValidateRegistrationFile';
+$maintClass = ValidateRegistrationFile::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 8c0237f..952b825 100644 (file)
@@ -55,5 +55,5 @@ class ViewCLI extends Maintenance {
        }
 }
 
-$maintClass = "ViewCLI";
+$maintClass = ViewCLI::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 94bd3cb..1fc0f37 100644 (file)
@@ -121,5 +121,5 @@ class WrapOldPasswords extends Maintenance {
        }
 }
 
-$maintClass = "WrapOldPasswords";
+$maintClass = WrapOldPasswords::class;
 require_once RUN_MAINTENANCE_IF_MAIN;
index 81473df..3b02e28 100644 (file)
@@ -2,7 +2,7 @@
 
 use Wikimedia\TestingAccessWrapper;
 
-class MWHttpRequestTestCase extends PHPUnit_Framework_TestCase {
+abstract class MWHttpRequestTestCase extends PHPUnit_Framework_TestCase {
        protected static $httpEngine;
        protected $oldHttpEngine;
 
index dbb7799..d19340b 100644 (file)
@@ -1,4 +1,6 @@
 <?php
+
+use Mediawiki\Http\HttpRequestFactory;
 use MediaWiki\Interwiki\InterwikiLookup;
 use MediaWiki\Linker\LinkRenderer;
 use MediaWiki\Linker\LinkRendererFactory;
@@ -339,6 +341,7 @@ class MediaWikiServicesTest extends MediaWikiTestCase {
                        'BlobStore' => [ 'BlobStore', BlobStore::class ],
                        '_SqlBlobStore' => [ '_SqlBlobStore', SqlBlobStore::class ],
                        'RevisionStore' => [ 'RevisionStore', RevisionStore::class ],
+                       'HttpRequestFactory' => [ 'HttpRequestFactory', HttpRequestFactory::class ],
                ];
        }
 
index d688928..f9e0bc9 100644 (file)
@@ -9,6 +9,7 @@ class CustomUppercaseCollationTest extends MediaWikiTestCase {
                $this->collation = new CustomUppercaseCollation( [
                        'D',
                        'C',
+                       'Cs',
                        'B'
                ], Language::factory( 'en' ) );
 
@@ -34,6 +35,7 @@ class CustomUppercaseCollationTest extends MediaWikiTestCase {
                        [ '💩 ', 'C', 'Test relocated to end' ],
                        [ 'c', 'b', 'lowercase' ],
                        [ 'x', 'z', 'lowercase original' ],
+                       [ 'Cz', 'Cs', 'digraphs' ],
                        [ 'C50D', 'C100', 'Numbers' ]
                ];
        }
@@ -53,8 +55,14 @@ class CustomUppercaseCollationTest extends MediaWikiTestCase {
                        [ 'afdsa', 'A' ],
                        [ "\xF3\xB3\x80\x80Foo", 'D' ],
                        [ "\xF3\xB3\x80\x81Foo", 'C' ],
-                       [ "\xF3\xB3\x80\x82Foo", 'B' ],
-                       [ "\xF3\xB3\x80\x83Foo", "\xF3\xB3\x80\x83" ],
+                       [ "\xF3\xB3\x80\x82Foo", 'Cs' ],
+                       [ "\xF3\xB3\x80\x83Foo", 'B' ],
+                       [ "\xF3\xB3\x80\x84Foo", "\xF3\xB3\x80\x84" ],
+                       [ 'C', 'C' ],
+                       [ 'Cz', 'C' ],
+                       [ 'Cs', 'Cs' ],
+                       [ 'CS', 'Cs' ],
+                       [ 'cs', 'Cs' ],
                ];
        }
 }
index 9b57e1c..5916b45 100644 (file)
@@ -287,6 +287,18 @@ class ExtensionRegistryTest extends MediaWikiTestCase {
                                        ],
                                ],
                        ],
+                       [
+                               'global is null before',
+                               [
+                                       'NullGlobal' => null,
+                               ],
+                               [
+                                       'NullGlobal' => 'not-null'
+                               ],
+                               [
+                                       'NullGlobal' => null
+                               ],
+                       ],
                ];
        }
 }