Rename SpecialRecentChanges::addRecentChangesJS() to addModules()
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 12 Oct 2013 18:45:07 +0000 (20:45 +0200)
committerReedy <reedy@wikimedia.org>
Sun, 13 Oct 2013 20:49:53 +0000 (20:49 +0000)
…and make it protected. It makes no sense to include class name in the
function name, especially since subclasses might want to customize it.

Change-Id: Ic0d23f4400b88596fdb11f6c0d8aefc9aea589ba

RELEASE-NOTES-1.22
includes/specials/SpecialRecentchanges.php

index a365da6..32c1854 100644 (file)
@@ -489,6 +489,8 @@ changes to languages because of Bugzilla reports.
   of media handler overriding MediaHandler::parseParamString.
 * (bug 46512) The collapsibleNav feature from the Vector extension has been moved
   to the Vector skin in core.
+* SpecialRecentChanges::addRecentChangesJS() function has been renamed
+  to addModules() and made protected.
 
 == Compatibility ==
 
index b144d7b..a42a217 100644 (file)
@@ -155,7 +155,7 @@ class SpecialRecentChanges extends IncludableSpecialPage {
                $opts = $this->getOptions();
                $this->setHeaders();
                $this->outputHeader();
-               $this->addRecentChangesJS();
+               $this->addModules();
 
                // Fetch results, prepare a batch link existence check query
                $conds = $this->buildMainQueryConds( $opts );
@@ -912,9 +912,9 @@ class SpecialRecentChanges extends IncludableSpecialPage {
        }
 
        /**
-        * Add JavaScript to the page
+        * Add page-specific modules.
         */
-       function addRecentChangesJS() {
+       protected function addModules() {
                $this->getOutput()->addModules( array(
                        'mediawiki.special.recentchanges',
                ) );