Use canonical class name, remove unused globals.
authorPlatonides <platonides@gmail.com>
Thu, 29 Aug 2013 22:18:42 +0000 (00:18 +0200)
committerPlatonides <platonides@gmail.com>
Thu, 29 Aug 2013 22:18:42 +0000 (00:18 +0200)
Change-Id: I94cf491e4c1c793f455fd597b383f8133b0aace3

includes/SkinTemplate.php
includes/rcfeed/JSONRCFeedFormatter.php
includes/specials/SpecialListfiles.php

index 2739df3..1b766ab 100644 (file)
@@ -589,8 +589,6 @@ class SkinTemplate extends Skin {
         * @return array
         */
        protected function buildPersonalUrls() {
-               global $wgSecureLogin;
-
                $title = $this->getTitle();
                $request = $this->getRequest();
                $pageurl = $title->getLocalURL();
index d50139c..f4cb992 100644 (file)
@@ -1,11 +1,12 @@
 <?php
+
 class JSONRCFeedFormatter implements RCFeedFormatter {
        /**
         * Generates a notification that can be easily interpreted by a machine.
         * @see RCFeedFormatter::getLine
         */
        public function getLine( array $feed, RecentChange $rc, $actionComment ) {
-               global $wgCanonicalServer, $wgScriptPath, $wgArticlePath, $wgDBname;
+               global $wgCanonicalServer, $wgScriptPath, $wgDBname;
                $attrib = $rc->getAttributes();
 
                $packet = array(
index 9377628..d939bd1 100644 (file)
@@ -471,7 +471,7 @@ class ImageListPager extends TablePager {
                        'tabindex' => 3,
                ) );
 
-               $inputForm['listfiles-show-all'] = HTML::input( 'ilshowall', 1, 'checkbox', array(
+               $inputForm['listfiles-show-all'] = Html::input( 'ilshowall', 1, 'checkbox', array(
                        'checked' => $this->mShowAll,
                        'tabindex' => 4,
                ) );