From 39e5d8d843a89cd852d07d9be116838881dbe115 Mon Sep 17 00:00:00 2001 From: petarpetkovic Date: Thu, 16 Aug 2018 01:33:12 +0200 Subject: [PATCH] Fix spelling of word "necessary" Bug: T201491 Change-Id: Ic983889a5702b8b8552c88ebc4d676f35e9fe61e --- includes/EditPage.php | 2 +- includes/api/ApiPageSet.php | 2 +- includes/gallery/PackedImageGallery.php | 2 +- includes/media/DjVuHandler.php | 2 +- includes/upload/UploadStash.php | 2 +- tests/phpunit/MediaWikiTestCase.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 7f209d45e5..d1f874ead7 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3181,7 +3181,7 @@ ERROR; } /** - * Helper function for summary input functions, which returns the neccessary + * Helper function for summary input functions, which returns the necessary * attributes for the input. * * @param array|null $inputAttrs Array of attrs to use on the input diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php index 19629dae09..3786e8d90c 100644 --- a/includes/api/ApiPageSet.php +++ b/includes/api/ApiPageSet.php @@ -1400,7 +1400,7 @@ class ApiPageSet extends ApiBase { if ( isset( $data[$toPageId] ) && isset( $this->mGeneratorData[$fromNs][$fromDBkey] ) ) { - // It is necesary to set both $data and add to $result, if an ApiResult, + // It is necessary to set both $data and add to $result, if an ApiResult, // to ensure multiple redirects to the same destination are all merged. $data[$toPageId] = call_user_func( $this->mRedirectMergePolicy, diff --git a/includes/gallery/PackedImageGallery.php b/includes/gallery/PackedImageGallery.php index 2e4836a583..d1c945528d 100644 --- a/includes/gallery/PackedImageGallery.php +++ b/includes/gallery/PackedImageGallery.php @@ -28,7 +28,7 @@ class PackedImageGallery extends TraditionalImageGallery { } /** - * We artificially have 1.5 the resolution neccessary so that + * We artificially have 1.5 the resolution necessary so that * we can scale it up by that much on the client side, without * worrying about requesting a new image. */ diff --git a/includes/media/DjVuHandler.php b/includes/media/DjVuHandler.php index 14074ef4ec..00dfb724e5 100644 --- a/includes/media/DjVuHandler.php +++ b/includes/media/DjVuHandler.php @@ -252,7 +252,7 @@ class DjVuHandler extends ImageHandler { } /** - * Get metadata, unserializing it if neccessary. + * Get metadata, unserializing it if necessary. * * @param File $file The DjVu file in question * @return string XML metadata as a string. diff --git a/includes/upload/UploadStash.php b/includes/upload/UploadStash.php index 4e40dce27f..8ddbd04686 100644 --- a/includes/upload/UploadStash.php +++ b/includes/upload/UploadStash.php @@ -325,7 +325,7 @@ class UploadStash { ); // store the insertid in the class variable so immediate retrieval - // (possibly laggy) isn't necesary. + // (possibly laggy) isn't necessary. $this->fileMetadata[$key]['us_id'] = $dbw->insertId(); # create the UploadStashFile object for this file. diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index 310ba2935a..2f7a6c8c3c 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -1246,7 +1246,7 @@ abstract class MediaWikiTestCase extends PHPUnit\Framework\TestCase { $user ); // an edit always attempt to purge backlink links such as history - // pages. That is unneccessary. + // pages. That is unnecessary. JobQueueGroup::singleton()->get( 'htmlCacheUpdate' )->delete(); // WikiPages::doEditUpdates randomly adds RC purges JobQueueGroup::singleton()->get( 'recentChangesUpdate' )->delete(); -- 2.20.1