Fix spelling of word "necessary"
authorpetarpetkovic <ppetkovic@wikimedia.org>
Wed, 15 Aug 2018 23:33:12 +0000 (01:33 +0200)
committerpetarpetkovic <ppetkovic@wikimedia.org>
Wed, 15 Aug 2018 23:35:35 +0000 (01:35 +0200)
Bug: T201491
Change-Id: Ic983889a5702b8b8552c88ebc4d676f35e9fe61e

includes/EditPage.php
includes/api/ApiPageSet.php
includes/gallery/PackedImageGallery.php
includes/media/DjVuHandler.php
includes/upload/UploadStash.php
tests/phpunit/MediaWikiTestCase.php

index 7f209d4..d1f874e 100644 (file)
@@ -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
index 19629da..3786e8d 100644 (file)
@@ -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,
index 2e4836a..d1c9455 100644 (file)
@@ -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.
         */
index 14074ef..00dfb72 100644 (file)
@@ -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.
index 4e40dce..8ddbd04 100644 (file)
@@ -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.
index 310ba29..2f7a6c8 100644 (file)
@@ -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();