Remove unused global $wgContLang
authorPlatonides <platonides@users.mediawiki.org>
Wed, 22 Jun 2011 21:36:42 +0000 (21:36 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 22 Jun 2011 21:36:42 +0000 (21:36 +0000)
includes/ChangesList.php
includes/EditPage.php

index 2386a3a..8f0be63 100644 (file)
@@ -323,7 +323,6 @@ class ChangesList {
         * @return void
         */
        public function insertArticleLink( &$s, &$rc, $unpatrolled, $watched ) {
-               global $wgContLang;
                # If it's a new article, there is no diff link, but if it hasn't been
                # patrolled yet, we need to give users a way to do so
                $params = array();
@@ -805,7 +804,7 @@ class EnhancedChangesList extends ChangesList {
         * Enhanced RC group
         */
        protected function recentChangesBlockGroup( $block ) {
-               global $wgLang, $wgContLang, $wgRCShowChangedSize;
+               global $wgLang, $wgRCShowChangedSize;
 
                wfProfileIn( __METHOD__ );
 
index 78e770b..108dfd6 100644 (file)
@@ -1815,7 +1815,7 @@ HTML
                        'style' => '' // avoid php notices when appending preferences (appending allows customAttribs['style'] to still work
                );
 
-               global $wgBetterDirectionality, $wgContLang;
+               global $wgBetterDirectionality;
                if( $wgBetterDirectionality ) {
                        $pageLang = $this->mTitle->getPageLanguage();
                        $attribs['lang'] = $pageLang->getCode();