From: Fomafix Date: Tue, 14 Aug 2018 07:56:35 +0000 (+0200) Subject: Fix typos X-Git-Tag: 1.34.0-rc.0~4456 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=0a0d5cb7f7cd4479a7e8954d90422e6dda33d349;p=lhc%2Fweb%2Fwiklou.git Fix typos Bug: T201491 Change-Id: I25a27d11faabe2f5fa02950c7a4fb58b13fb3662 --- diff --git a/HISTORY b/HISTORY index 7540af3bca..2dc94ba850 100644 --- a/HISTORY +++ b/HISTORY @@ -4730,7 +4730,7 @@ This is a maintenance release of the MediaWiki 1.22 branch. === Changes since 1.22.9 === * (bug 64970) Fix support for blobs on DatabaseOracle::update -* (bug 60719) In MediaWiki 1.22, the job queue execution on each page request was changed (Gerrit change 59797) so, instead of executing the job inside the same PHP process that's rendering the page, a new PHP cli command is spawned to execute runJobs.php in the background. It will only work if $wgPhpCli is set to an actual path or safe mode is off, otherwise, the old method will be used. https://www.mediawiki.org/wiki/Manual:Job_queue#Changes_introduced_in_MediaWiki_1.22 for more infomation. This change was in earlier releases of 1.22 but was not noted here until now. +* (bug 60719) In MediaWiki 1.22, the job queue execution on each page request was changed (Gerrit change 59797) so, instead of executing the job inside the same PHP process that's rendering the page, a new PHP cli command is spawned to execute runJobs.php in the background. It will only work if $wgPhpCli is set to an actual path or safe mode is off, otherwise, the old method will be used. https://www.mediawiki.org/wiki/Manual:Job_queue#Changes_introduced_in_MediaWiki_1.22 for more information. This change was in earlier releases of 1.22 but was not noted here until now. == MediaWiki 1.22.9 == This is a security and maintenance release of the MediaWiki 1.22 branch. diff --git a/docs/php-memcached/Documentation b/docs/php-memcached/Documentation index 32e340ac31..6a0dce673a 100644 --- a/docs/php-memcached/Documentation +++ b/docs/php-memcached/Documentation @@ -130,7 +130,7 @@ MemCachedClient::set_debug($do_debug); MemCachedClient::forget_dead_hosts(); // When a function returns FALSE, an error code is set. -// This funtion will return the error code. +// This function will return the error code. // See error_string() // returns last error code set MemCachedClient::error() diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 672ec8f352..03d29524a8 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -807,7 +807,7 @@ class ApiMain extends ApiBase { * Attempt to validate the value of Access-Control-Request-Headers against a list * of headers that we allow the follow up request to send. * - * @param string $requestedHeaders Comma seperated list of HTTP headers + * @param string $requestedHeaders Comma separated list of HTTP headers * @return bool True if all requested headers are in the list of allowed headers */ protected static function matchRequestedHeaders( $requestedHeaders ) { diff --git a/includes/cache/MessageCache.php b/includes/cache/MessageCache.php index 5c14818a52..300489c9cb 100644 --- a/includes/cache/MessageCache.php +++ b/includes/cache/MessageCache.php @@ -232,13 +232,13 @@ class MessageCache { * (2) memcached * (3) from the database. * - * When succesfully loading from (2) or (3), all higher level caches are + * When successfully loading from (2) or (3), all higher level caches are * updated for the newest version. * * Nothing is loaded if member variable mDisable is true, either manually * set by calling code or if message loading fails (is this possible?). * - * Returns true if cache is already populated or it was succesfully populated, + * Returns true if cache is already populated or it was successfully populated, * or false if populating empty cache fails. Also returns true if MessageCache * is disabled. * diff --git a/includes/debug/logger/LegacyLogger.php b/includes/debug/logger/LegacyLogger.php index 7bd505d089..d4a79d931f 100644 --- a/includes/debug/logger/LegacyLogger.php +++ b/includes/debug/logger/LegacyLogger.php @@ -193,7 +193,7 @@ class LegacyLogger extends AbstractLogger { * Format a message. * * Messages to the 'wfDebug', 'wfLogDBError' and 'wfErrorLog' channels - * receive special fomatting to mimic the historic output of the functions + * receive special formatting to mimic the historic output of the functions * of the same name. All other channel values are formatted based on the * historic output of the `wfDebugLog()` global function. * diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 1fc6bd05cc..7920e9cb4b 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -3146,7 +3146,7 @@ class LocalFileRestoreBatch { /** * Cleanup a failed batch. The batch was only partially successful, so - * rollback by removing all items that were succesfully copied. + * rollback by removing all items that were successfully copied. * * @param Status $storeStatus * @param array[] $storeBatch diff --git a/includes/htmlform/HTMLNestedFilterable.php b/includes/htmlform/HTMLNestedFilterable.php index d44fc60abe..a68ab62dad 100644 --- a/includes/htmlform/HTMLNestedFilterable.php +++ b/includes/htmlform/HTMLNestedFilterable.php @@ -2,7 +2,7 @@ interface HTMLNestedFilterable { /** - * Support for seperating multi-option preferences into multiple preferences + * Support for separating multi-option preferences into multiple preferences * Due to lack of array support. * * @param array $data diff --git a/includes/libs/objectcache/WANObjectCache.php b/includes/libs/objectcache/WANObjectCache.php index a8bbcc1163..716641fcbc 100644 --- a/includes/libs/objectcache/WANObjectCache.php +++ b/includes/libs/objectcache/WANObjectCache.php @@ -946,7 +946,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface { * @code * $catSituationTolerabilityCache = $this->cache->getWithSetCallback( * // Group by constraint ID/hash, cat family ID/hash, or something else useful - * $this->cache->makeKey( 'cat-situation-tolerablity-checks', $groupKey ), + * $this->cache->makeKey( 'cat-situation-tolerability-checks', $groupKey ), * WANObjectCache::TTL_DAY, // rarely used groups should fade away * // The $scenarioKey format is $constraintId: * function ( $cacheMap ) use ( $scenarioKey, $constraintId, $situation ) { diff --git a/includes/libs/rdbms/database/DatabasePostgres.php b/includes/libs/rdbms/database/DatabasePostgres.php index b8a92004ce..a959d72ba8 100644 --- a/includes/libs/rdbms/database/DatabasePostgres.php +++ b/includes/libs/rdbms/database/DatabasePostgres.php @@ -649,7 +649,7 @@ __INDEXATTR__; * be quoted with Database::addQuotes() * $conds may be "*" to copy the whole table * srcTable may be an array of tables. - * @todo FIXME: Implement this a little better (seperate select/insert)? + * @todo FIXME: Implement this a little better (separate select/insert)? * * @param string $destTable * @param array|string $srcTable diff --git a/includes/resourceloader/ResourceLoader.php b/includes/resourceloader/ResourceLoader.php index 637bae640a..151b2718d0 100644 --- a/includes/resourceloader/ResourceLoader.php +++ b/includes/resourceloader/ResourceLoader.php @@ -1095,7 +1095,7 @@ MESSAGE; break; case 'styles': $styles = $content['styles']; - // We no longer seperate into media, they are all combined now with + // We no longer separate into media, they are all combined now with // custom media type groups into @media .. {} sections as part of the css string. // Module returns either an empty array or a numerical array with css strings. $strContent = isset( $styles['css'] ) ? implode( '', $styles['css'] ) : ''; diff --git a/includes/session/SessionProvider.php b/includes/session/SessionProvider.php index ba075e0ca8..1f015b52e6 100644 --- a/includes/session/SessionProvider.php +++ b/includes/session/SessionProvider.php @@ -521,7 +521,7 @@ abstract class SessionProvider implements SessionProviderInterface, LoggerAwareI if ( strlen( $hash ) < 32 ) { // Should never happen, even md5 is 128 bits // @codeCoverageIgnoreStart - throw new \UnexpectedValueException( 'Hash fuction returned less than 128 bits' ); + throw new \UnexpectedValueException( 'Hash function returned less than 128 bits' ); // @codeCoverageIgnoreEnd } if ( strlen( $hash ) >= 40 ) { diff --git a/resources/src/jquery.tablesorter/jquery.tablesorter.js b/resources/src/jquery.tablesorter/jquery.tablesorter.js index 59620bd27b..6287126f6b 100644 --- a/resources/src/jquery.tablesorter/jquery.tablesorter.js +++ b/resources/src/jquery.tablesorter/jquery.tablesorter.js @@ -910,7 +910,7 @@ // Build the cache for the tbody cells // to share between calculations for this sort action. - // Re-calculated each time a sort action is performed due to possiblity + // Re-calculated each time a sort action is performed due to possibility // that sort values change. Shouldn't be too expensive, but if it becomes // too slow an event based system should be implemented somehow where // cells get event .change() and bubbles up to the here diff --git a/tests/phpunit/includes/EditPageTest.php b/tests/phpunit/includes/EditPageTest.php index 587f2c4b84..55d8fbb444 100644 --- a/tests/phpunit/includes/EditPageTest.php +++ b/tests/phpunit/includes/EditPageTest.php @@ -396,7 +396,7 @@ class EditPageTest extends MediaWikiLangTestCase { $page = $this->assertEdit( 'EditPageTest_testUpdatePage', "zero", null, $edit, EditPage::AS_SUCCESS_UPDATE, $text, - "expected successfull update with given text" ); + "expected successful update with given text" ); $this->assertGreaterThan( 0, $checkIds[0], "First event rev ID set" ); $this->forceRevisionDate( $page, '20120101000000' ); @@ -409,7 +409,7 @@ class EditPageTest extends MediaWikiLangTestCase { $this->assertEdit( 'EditPageTest_testUpdatePage', null, null, $edit, EditPage::AS_SUCCESS_UPDATE, $text, - "expected successfull update with given text" ); + "expected successful update with given text" ); $this->assertGreaterThan( 0, $checkIds[1], "Second edit hook rev ID set" ); $this->assertGreaterThan( $checkIds[0], $checkIds[1], "Second event rev ID is higher" ); } @@ -423,7 +423,7 @@ class EditPageTest extends MediaWikiLangTestCase { $page = $this->assertEdit( 'EditPageTest_testTrxUpdatePage', "zero", null, $edit, EditPage::AS_SUCCESS_UPDATE, $text, - "expected successfull update with given text" ); + "expected successful update with given text" ); $this->forceRevisionDate( $page, '20120101000000' ); @@ -449,7 +449,7 @@ class EditPageTest extends MediaWikiLangTestCase { $this->assertEdit( 'EditPageTest_testTrxUpdatePage', null, null, $edit, EditPage::AS_SUCCESS_UPDATE, $text, - "expected successfull update with given text" ); + "expected successful update with given text" ); $text = "three"; $edit = [ @@ -459,7 +459,7 @@ class EditPageTest extends MediaWikiLangTestCase { $this->assertEdit( 'EditPageTest_testTrxUpdatePage', null, null, $edit, EditPage::AS_SUCCESS_UPDATE, $text, - "expected successfull update with given text" ); + "expected successful update with given text" ); wfGetDB( DB_MASTER )->commit( __METHOD__ ); @@ -534,7 +534,7 @@ hello $this->assertEdit( 'EditPageTest_testSectionEdit', $base, null, $edit, EditPage::AS_SUCCESS_UPDATE, $expected, - "expected successfull update of section" ); + "expected successful update of section" ); } public static function provideAutoMerge() { @@ -675,7 +675,7 @@ hello // first edit $this->assertEdit( 'EditPageTest_testAutoMerge', null, 'Adam', $adamsEdit, - EditPage::AS_SUCCESS_UPDATE, null, "expected successfull update" ); + EditPage::AS_SUCCESS_UPDATE, null, "expected successful update" ); // second edit $this->assertEdit( 'EditPageTest_testAutoMerge', null, 'Berta', $bertasEdit, diff --git a/tests/phpunit/includes/libs/CSSMinTest.php b/tests/phpunit/includes/libs/CSSMinTest.php index 04aecc9086..ef333f9420 100644 --- a/tests/phpunit/includes/libs/CSSMinTest.php +++ b/tests/phpunit/includes/libs/CSSMinTest.php @@ -667,7 +667,7 @@ class CSSMinTest extends MediaWikiTestCase { } /** - * Seperated because they are currently broken (T37492) + * Separated because they are currently broken (T37492) * * @group Broken * @dataProvider provideStringCases diff --git a/tests/qunit/suites/resources/jquery/jquery.tablesorter.parsers.test.js b/tests/qunit/suites/resources/jquery/jquery.tablesorter.parsers.test.js index 2865cbbab7..e49110ffa0 100644 --- a/tests/qunit/suites/resources/jquery/jquery.tablesorter.parsers.test.js +++ b/tests/qunit/suites/resources/jquery/jquery.tablesorter.parsers.test.js @@ -90,7 +90,7 @@ [ '1', false, 1, 'A super malformed IP Address' ], [ 'Just text', false, -Infinity, 'A line with just text' ], [ '45.238.27.109Postfix', false, 45238027109, 'An IP address with a connected postfix' ], - [ '45.238.27.109 postfix', false, 45238027109, 'An IP address with a seperated postfix' ] + [ '45.238.27.109 postfix', false, 45238027109, 'An IP address with a separated postfix' ] ]; parserTest( 'IPv4', 'IPAddress', ipv4 );