Removal of unused globals
authorPlatonides <platonides@users.mediawiki.org>
Thu, 27 Oct 2011 20:48:09 +0000 (20:48 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Thu, 27 Oct 2011 20:48:09 +0000 (20:48 +0000)
includes/SkinTemplate.php
includes/Title.php
includes/diff/DifferenceEngine.php
includes/filerepo/File.php
includes/logging/LogEntry.php
includes/parser/Parser.php

index 56adcff..a6be3b9 100644 (file)
@@ -786,7 +786,6 @@ class SkinTemplate extends Skin {
         * @return array
         */
        protected function buildContentNavigationUrls() {
-               global $wgContLang;
                global $wgDisableLangConversion;
 
                wfProfileIn( __METHOD__ );
index bbff110..53f0238 100644 (file)
@@ -843,8 +843,6 @@ class Title {
         * @return String the URL
         */
        public function getFullURL( $query = '', $variant = false ) {
-               global $wgServer, $wgRequest;
-
                # Hand off all the decisions on urls to getLocalURL
                $url = $this->getLocalURL( $query, $variant );
 
index bdea4eb..bb2f4f3 100644 (file)
@@ -175,7 +175,7 @@ class DifferenceEngine {
        }
 
        function showDiffPage( $diffOnly = false ) {
-               global $wgUser, $wgOut, $wgRequest, $wgUseExternalEditor, $wgUseRCPatrol;
+               global $wgUser, $wgOut, $wgRequest, $wgUseExternalEditor;
                wfProfileIn( __METHOD__ );
 
                # Allow frames except in certain special cases
@@ -509,7 +509,7 @@ CONTROL;
         * Show the new revision of the page.
         */
        function renderNewRevision() {
-               global $wgOut, $wgUser;
+               global $wgOut;
                wfProfileIn( __METHOD__ );
                $revHeader = $this->getRevisionHeader( $this->mNewRev );
                # Add "current version as of X" title
@@ -1023,8 +1023,6 @@ CONTROL;
         * @return bool
         */
        function loadRevisionData() {
-               global $wgUser;
-
                if ( $this->mRevisionsLoaded ) {
                        return true;
                }
index f31b72f..2fe73cc 100644 (file)
@@ -710,7 +710,7 @@ abstract class File {
         * @return MediaTransformOutput | false
         */
        function transform( $params, $flags = 0 ) {
-               global $wgUseSquid, $wgServer;
+               global $wgUseSquid;
 
                wfProfileIn( __METHOD__ );
                do {
index 221fa2e..82d1ff1 100644 (file)
@@ -362,8 +362,6 @@ class ManualLogEntry extends LogEntryBase {
         * @return int If of the log entry
         */
        public function insert() {
-               global $wgLogRestrictions;
-
                $dbw = wfGetDB( DB_MASTER );
                $id = $dbw->nextSequenceValue( 'logging_log_id_seq' );
 
@@ -464,4 +462,4 @@ class ManualLogEntry extends LogEntryBase {
                return (int) $this->deleted;
        }
 
-}
\ No newline at end of file
+}
index c92e59f..e281ff6 100644 (file)
@@ -3021,7 +3021,7 @@ class Parser {
         * @private
         */
        function braceSubstitution( $piece, $frame ) {
-               global $wgContLang, $wgNonincludableNamespaces;
+               global $wgNonincludableNamespaces;
                wfProfileIn( __METHOD__ );
                wfProfileIn( __METHOD__.'-setup' );