Index: trunk/phase3/includes/FileRevertForm.php |
— | — | @@ -88,7 +88,7 @@ |
89 | 89 | * Show the confirmation form |
90 | 90 | */ |
91 | 91 | protected function showForm() { |
92 | | - global $wgOut, $wgUser, $wgRequest, $wgLang, $wgContLang; |
| 92 | + global $wgOut, $wgUser, $wgLang, $wgContLang; |
93 | 93 | $timestamp = $this->getTimestamp(); |
94 | 94 | |
95 | 95 | $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->getAction() ) ); |
Index: trunk/phase3/includes/upload/UploadFromUrl.php |
— | — | @@ -163,7 +163,6 @@ |
164 | 164 | } |
165 | 165 | |
166 | 166 | if ( $status->isGood() ) { |
167 | | - global $wgLocalFileRepo; |
168 | 167 | $file = $this->getLocalFile(); |
169 | 168 | |
170 | 169 | $wgUser->leaveUserMessage( wfMsg( 'successfulupload' ), |
Index: trunk/phase3/includes/CategoryPage.php |
— | — | @@ -85,7 +85,7 @@ |
86 | 86 | * @private |
87 | 87 | */ |
88 | 88 | function getHTML() { |
89 | | - global $wgOut, $wgCategoryMagicGallery, $wgCategoryPagingLimit, $wgContLang; |
| 89 | + global $wgOut, $wgCategoryMagicGallery, $wgContLang; |
90 | 90 | wfProfileIn( __METHOD__ ); |
91 | 91 | |
92 | 92 | $this->showGallery = $wgCategoryMagicGallery && !$wgOut->mNoGallery; |
Index: trunk/phase3/includes/User.php |
— | — | @@ -859,7 +859,7 @@ |
860 | 860 | * @return \bool True if the user is logged in, false otherwise. |
861 | 861 | */ |
862 | 862 | private function loadFromSession() { |
863 | | - global $wgMemc, $wgCookiePrefix, $wgExternalAuthType, $wgAutocreatePolicy; |
| 863 | + global $wgCookiePrefix, $wgExternalAuthType, $wgAutocreatePolicy; |
864 | 864 | |
865 | 865 | $result = null; |
866 | 866 | wfRunHooks( 'UserLoadFromSession', array( $this, &$result ) ); |
Index: trunk/phase3/includes/search/SearchEngine.php |
— | — | @@ -857,7 +857,7 @@ |
858 | 858 | * @return String |
859 | 859 | */ |
860 | 860 | public function highlightText( $text, $terms, $contextlines, $contextchars ) { |
861 | | - global $wgLang, $wgContLang; |
| 861 | + global $wgContLang; |
862 | 862 | global $wgSearchHighlightBoundaries; |
863 | 863 | $fname = __METHOD__; |
864 | 864 | |
— | — | @@ -1131,8 +1131,6 @@ |
1132 | 1132 | * @return String |
1133 | 1133 | */ |
1134 | 1134 | function extract( $text, $start, $end, &$posStart = null, &$posEnd = null ) { |
1135 | | - global $wgContLang; |
1136 | | - |
1137 | 1135 | if ( $start != 0 ) |
1138 | 1136 | $start = $this->position( $text, $start, 1 ); |
1139 | 1137 | if ( $end >= strlen( $text ) ) |
— | — | @@ -1283,7 +1281,7 @@ |
1284 | 1282 | * @return String |
1285 | 1283 | */ |
1286 | 1284 | public function highlightSimple( $text, $terms, $contextlines, $contextchars ) { |
1287 | | - global $wgLang, $wgContLang; |
| 1285 | + global $wgContLang; |
1288 | 1286 | $fname = __METHOD__; |
1289 | 1287 | |
1290 | 1288 | $lines = explode( "\n", $text ); |
Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -704,7 +704,7 @@ |
705 | 705 | * @return string |
706 | 706 | */ |
707 | 707 | function wfMsgGetKey( $key, $useDB, $langCode = false, $transform = true ) { |
708 | | - global $wgContLang, $wgMessageCache; |
| 708 | + global $wgMessageCache; |
709 | 709 | |
710 | 710 | wfRunHooks('NormalizeMessageKey', array(&$key, &$useDB, &$langCode, &$transform)); |
711 | 711 | |
— | — | @@ -2060,7 +2060,7 @@ |
2061 | 2061 | } |
2062 | 2062 | |
2063 | 2063 | function wfGetSiteNotice() { |
2064 | | - global $wgUser, $wgSiteNotice; |
| 2064 | + global $wgUser; |
2065 | 2065 | $fname = 'wfGetSiteNotice'; |
2066 | 2066 | wfProfileIn( $fname ); |
2067 | 2067 | $siteNotice = ''; |
Index: trunk/phase3/includes/ProfilerSimpleText.php |
— | — | @@ -22,8 +22,6 @@ |
23 | 23 | static private $out; |
24 | 24 | |
25 | 25 | function getFunctionReport() { |
26 | | - global $wgRequest, $wgOut; |
27 | | - |
28 | 26 | if($this->mTemplated) { |
29 | 27 | uasort($this->mCollated,array('self','sort')); |
30 | 28 | array_walk($this->mCollated,array('self','format')); |
Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -3496,8 +3496,6 @@ |
3497 | 3497 | * @param $frame PPFrame |
3498 | 3498 | */ |
3499 | 3499 | function extensionSubstitution( $params, $frame ) { |
3500 | | - global $wgRawHtml, $wgContLang; |
3501 | | - |
3502 | 3500 | $name = $frame->expand( $params['name'] ); |
3503 | 3501 | $attrText = !isset( $params['attr'] ) ? null : $frame->expand( $params['attr'] ); |
3504 | 3502 | $content = !isset( $params['inner'] ) ? null : $frame->expand( $params['inner'] ); |
Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -143,7 +143,6 @@ |
144 | 144 | $wgOut->addHTML( $html ); |
145 | 145 | |
146 | 146 | if ( $showmeta ) { |
147 | | - global $wgStylePath, $wgStyleVersion; |
148 | 147 | $expand = htmlspecialchars( Xml::escapeJsString( wfMsg( 'metadata-expand' ) ) ); |
149 | 148 | $collapse = htmlspecialchars( Xml::escapeJsString( wfMsg( 'metadata-collapse' ) ) ); |
150 | 149 | $wgOut->addHTML( Xml::element( 'h2', array( 'id' => 'metadata' ), wfMsg( 'metadata' ) ) . "\n" ); |
— | — | @@ -880,7 +879,7 @@ |
881 | 880 | } |
882 | 881 | |
883 | 882 | public function imageHistoryLine( $iscur, $file ) { |
884 | | - global $wgUser, $wgLang, $wgContLang; |
| 883 | + global $wgUser, $wgLang; |
885 | 884 | |
886 | 885 | $timestamp = wfTimestamp( TS_MW, $file->getTimestamp() ); |
887 | 886 | $img = $iscur ? $file->getName() : $file->getArchiveName(); |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -583,7 +583,7 @@ |
584 | 584 | } |
585 | 585 | |
586 | 586 | function makeThumbLink2( Title $title, $file, $frameParams = array(), $handlerParams = array(), $time = false, $query = "" ) { |
587 | | - global $wgStylePath, $wgContLang; |
| 587 | + global $wgStylePath; |
588 | 588 | $exists = $file && $file->exists(); |
589 | 589 | |
590 | 590 | # Shortcuts |
Index: trunk/phase3/includes/db/DatabaseOracle.php |
— | — | @@ -992,8 +992,6 @@ |
993 | 993 | } |
994 | 994 | |
995 | 995 | function setup_database() { |
996 | | - global $wgVersion, $wgDBmwschema, $wgDBts2schema, $wgDBport, $wgDBuser; |
997 | | - |
998 | 996 | $res = $this->sourceFile( "../maintenance/ora/tables.sql" ); |
999 | 997 | if ($res === true) { |
1000 | 998 | print " done.</li>\n"; |
Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -554,7 +554,6 @@ |
555 | 555 | * @param $tempIgnore Boolean |
556 | 556 | */ |
557 | 557 | function reportQueryError( $error, $errno, $sql, $fname, $tempIgnore = false ) { |
558 | | - global $wgCommandLineMode; |
559 | 558 | # Ignore errors during error handling to avoid infinite recursion |
560 | 559 | $ignore = $this->ignoreErrors( true ); |
561 | 560 | ++$this->mErrorCount; |
Index: trunk/phase3/includes/db/LoadBalancer.php |
— | — | @@ -403,7 +403,6 @@ |
404 | 404 | * @param $wiki String: wiki ID |
405 | 405 | */ |
406 | 406 | public function &getConnection( $i, $groups = array(), $wiki = false ) { |
407 | | - global $wgDBtype; |
408 | 407 | wfProfileIn( __METHOD__ ); |
409 | 408 | |
410 | 409 | if ( $i == DB_LAST ) { |
Index: trunk/phase3/includes/UserMailer.php |
— | — | @@ -359,7 +359,6 @@ |
360 | 360 | # we use $wgPasswordSender as sender's address |
361 | 361 | global $wgEnotifWatchlist; |
362 | 362 | global $wgEnotifMinorEdits, $wgEnotifUserTalk; |
363 | | - global $wgEnotifImpersonal; |
364 | 363 | |
365 | 364 | wfProfileIn( __METHOD__ ); |
366 | 365 | |
Index: trunk/phase3/includes/filerepo/FileRepo.php |
— | — | @@ -258,7 +258,6 @@ |
259 | 259 | * Get the name of an image from its title object |
260 | 260 | */ |
261 | 261 | function getNameFromTitle( $title ) { |
262 | | - global $wgCapitalLinks; |
263 | 262 | if ( $this->initialCapital != MWNamespace::isCapitalized( NS_FILE ) ) { |
264 | 263 | global $wgContLang; |
265 | 264 | $name = $title->getUserCaseDBKey(); |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -765,7 +765,7 @@ |
766 | 766 | * @return one of the constants describing the result |
767 | 767 | */ |
768 | 768 | function internalAttemptSave( &$result, $bot = false ) { |
769 | | - global $wgFilterCallback, $wgUser, $wgOut, $wgParser; |
| 769 | + global $wgFilterCallback, $wgUser, $wgParser; |
770 | 770 | global $wgMaxArticleSize; |
771 | 771 | |
772 | 772 | wfProfileIn( __METHOD__ ); |
— | — | @@ -1848,7 +1848,7 @@ |
1849 | 1849 | * @return string |
1850 | 1850 | */ |
1851 | 1851 | function getPreviewText() { |
1852 | | - global $wgOut, $wgUser, $wgTitle, $wgParser, $wgLang, $wgContLang, $wgMessageCache; |
| 1852 | + global $wgOut, $wgUser, $wgParser, $wgMessageCache; |
1853 | 1853 | |
1854 | 1854 | wfProfileIn( __METHOD__ ); |
1855 | 1855 | |
Index: trunk/phase3/includes/ChangesFeed.php |
— | — | @@ -45,8 +45,7 @@ |
46 | 46 | * @return null or true |
47 | 47 | */ |
48 | 48 | public function execute( $feed, $rows, $lastmod, $opts ) { |
49 | | - global $messageMemc, $wgFeedCacheTimeout; |
50 | | - global $wgSitename, $wgLang, $wgRenderHashAppend; |
| 49 | + global $wgLang, $wgRenderHashAppend; |
51 | 50 | |
52 | 51 | if ( !FeedUtils::checkFeedOutput( $this->format ) ) { |
53 | 52 | return; |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2090,8 +2090,8 @@ |
2091 | 2091 | * @return String: The doctype, opening <html>, and head element. |
2092 | 2092 | */ |
2093 | 2093 | public function headElement( Skin $sk, $includeStyle = true ) { |
2094 | | - global $wgContLanguageCode, $wgOutputEncoding, $wgMimeType; |
2095 | | - global $wgContLang, $wgUseTrackbacks, $wgStyleVersion, $wgHtml5; |
| 2094 | + global $wgOutputEncoding, $wgMimeType; |
| 2095 | + global $wgUseTrackbacks, $wgHtml5; |
2096 | 2096 | global $wgUser, $wgRequest, $wgLang; |
2097 | 2097 | |
2098 | 2098 | if ( $sk->commonPrintStylesheet() ) { |
Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -357,7 +357,7 @@ |
358 | 358 | |
359 | 359 | // @TODO: split up! |
360 | 360 | private function logActionLinks( $row, $title, $paramArray, &$comment ) { |
361 | | - global $wgUser, $wgLang; |
| 361 | + global $wgUser; |
362 | 362 | if( ( $this->flags & self::NO_ACTION_LINK ) // we don't want to see the action |
363 | 363 | || self::isDeleted( $row, LogPage::DELETED_ACTION ) ) // action is hidden |
364 | 364 | { |
— | — | @@ -913,7 +913,6 @@ |
914 | 914 | } |
915 | 915 | |
916 | 916 | public function getQueryInfo() { |
917 | | - global $wgOut; |
918 | 917 | $tables = array( 'logging', 'user' ); |
919 | 918 | $this->mConds[] = 'user_id = log_user'; |
920 | 919 | $index = array(); |
Index: trunk/phase3/includes/Html.php |
— | — | @@ -595,7 +595,7 @@ |
596 | 596 | $ret .= "<?xml version=\"1.0\" encoding=\"$wgOutputEncoding\" ?" . ">\n"; |
597 | 597 | } |
598 | 598 | |
599 | | - global $wgHtml5, $wgHtml5Version, $wgWellFormedXml, $wgDocType, $wgDTD; |
| 599 | + global $wgHtml5, $wgHtml5Version, $wgDocType, $wgDTD; |
600 | 600 | global $wgXhtmlNamespaces, $wgXhtmlDefaultNamespace; |
601 | 601 | if ( $wgHtml5 ) { |
602 | 602 | $ret .= "<!DOCTYPE html>\n"; |
Index: trunk/phase3/includes/installer/CoreInstaller.php |
— | — | @@ -275,8 +275,6 @@ |
276 | 276 | * @return Status |
277 | 277 | */ |
278 | 278 | public function installExtensions() { |
279 | | - global $wgHooks, $wgAutoloadClasses; |
280 | | - |
281 | 279 | $exts = $this->getVar( '_Extensions' ); |
282 | 280 | $path = $this->getVar( 'IP' ) . '/extensions'; |
283 | 281 | |
Index: trunk/phase3/includes/installer/SqliteInstaller.php |
— | — | @@ -36,7 +36,6 @@ |
37 | 37 | } |
38 | 38 | |
39 | 39 | public function submitConnectForm() { |
40 | | - global $wgSQLiteDataDir; |
41 | 40 | $this->setVarsFromRequest( array( 'wgSQLiteDataDir', 'wgDBname' ) ); |
42 | 41 | |
43 | 42 | $dir = realpath( $this->getVar( 'wgSQLiteDataDir' ) ); |
Index: trunk/phase3/includes/WikiMap.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | * @return WikiReference object or null if the wiki was not found |
14 | 14 | */ |
15 | 15 | public static function getWiki( $wikiID ) { |
16 | | - global $wgConf, $IP; |
| 16 | + global $wgConf; |
17 | 17 | |
18 | 18 | $wgConf->loadFullData(); |
19 | 19 | |
Index: trunk/phase3/includes/MagicWord.php |
— | — | @@ -514,7 +514,6 @@ |
515 | 515 | * Add a magic word by name |
516 | 516 | */ |
517 | 517 | public function add( $name ) { |
518 | | - global $wgContLang; |
519 | 518 | $this->names[] = $name; |
520 | 519 | $this->hash = $this->baseRegex = $this->regex = null; |
521 | 520 | } |
— | — | @@ -657,7 +656,6 @@ |
658 | 657 | * Both elements are false if there was no match. |
659 | 658 | */ |
660 | 659 | public function matchVariableStartToEnd( $text ) { |
661 | | - global $wgContLang; |
662 | 660 | $regexes = $this->getVariableStartToEndRegex(); |
663 | 661 | foreach ( $regexes as $regex ) { |
664 | 662 | if ( $regex !== '' ) { |
Index: trunk/phase3/includes/Title.php |
— | — | @@ -789,7 +789,7 @@ |
790 | 790 | * @return \type{\string} the URL |
791 | 791 | */ |
792 | 792 | public function getFullURL( $query = '', $variant = false ) { |
793 | | - global $wgContLang, $wgServer, $wgRequest; |
| 793 | + global $wgServer, $wgRequest; |
794 | 794 | |
795 | 795 | if ( is_array( $query ) ) { |
796 | 796 | $query = wfArrayToCGI( $query ); |
— | — | @@ -3230,7 +3230,7 @@ |
3231 | 3231 | * Ignored if the user doesn't have the suppressredirect right |
3232 | 3232 | */ |
3233 | 3233 | private function moveToNewTitle( &$nt, $reason = '', $createRedirect = true ) { |
3234 | | - global $wgUseSquid, $wgUser, $wgContLang; |
| 3234 | + global $wgUser, $wgContLang; |
3235 | 3235 | |
3236 | 3236 | $comment = wfMsgForContent( '1movedto2', $this->getPrefixedText(), $nt->getPrefixedText() ); |
3237 | 3237 | if ( $reason ) { |
— | — | @@ -4042,8 +4042,7 @@ |
4043 | 4043 | * @return Boolean |
4044 | 4044 | */ |
4045 | 4045 | public function canUseNoindex() { |
4046 | | - global $wgArticleRobotPolicies, $wgContentNamespaces, |
4047 | | - $wgExemptFromUserRobotsControl; |
| 4046 | + global $wgContentNamespaces, $wgExemptFromUserRobotsControl; |
4048 | 4047 | |
4049 | 4048 | $bannedNamespaces = is_null( $wgExemptFromUserRobotsControl ) |
4050 | 4049 | ? $wgContentNamespaces |
Index: trunk/phase3/includes/RawPage.php |
— | — | @@ -109,7 +109,7 @@ |
110 | 110 | } |
111 | 111 | |
112 | 112 | function view() { |
113 | | - global $wgOut, $wgScript, $wgRequest; |
| 113 | + global $wgOut, $wgRequest; |
114 | 114 | |
115 | 115 | if( $wgRequest->isPathInfoBad() ) { |
116 | 116 | # Internet Explorer will ignore the Content-Type header if it |
— | — | @@ -158,7 +158,7 @@ |
159 | 159 | } |
160 | 160 | |
161 | 161 | function getRawText() { |
162 | | - global $wgUser, $wgOut, $wgRequest; |
| 162 | + global $wgUser, $wgOut; |
163 | 163 | if( $this->mGen ) { |
164 | 164 | $sk = $wgUser->getSkin(); |
165 | 165 | if( !StubObject::isRealObject( $wgOut ) ) |
Index: trunk/phase3/includes/HTMLFileCache.php |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | |
32 | 32 | public function fileCacheName() { |
33 | 33 | if( !$this->mFileCache ) { |
34 | | - global $wgCacheDirectory, $wgFileCacheDirectory, $wgRequest; |
| 34 | + global $wgCacheDirectory, $wgFileCacheDirectory; |
35 | 35 | |
36 | 36 | if ( $wgFileCacheDirectory ) { |
37 | 37 | $dir = $wgFileCacheDirectory; |
Index: trunk/phase3/includes/StreamFile.php |
— | — | @@ -91,7 +91,7 @@ |
92 | 92 | */ |
93 | 93 | if ( $safe ) { |
94 | 94 | global $wgFileBlacklist, $wgCheckFileExtensions, $wgStrictFileExtensions, |
95 | | - $wgFileExtensions, $wgVerifyMimeType, $wgMimeTypeBlacklist, $wgRequest; |
| 95 | + $wgFileExtensions, $wgVerifyMimeType, $wgMimeTypeBlacklist; |
96 | 96 | list( $partName, $extList ) = UploadBase::splitExtensions( $filename ); |
97 | 97 | if ( UploadBase::checkFileExtensionList( $extList, $wgFileBlacklist ) ) { |
98 | 98 | return 'unknown/unknown'; |
Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -875,7 +875,7 @@ |
876 | 876 | */ |
877 | 877 | function buildNavUrls() { |
878 | 878 | global $wgUseTrackbacks, $wgOut, $wgUser, $wgRequest; |
879 | | - global $wgEnableUploads, $wgUploadNavigationUrl; |
| 879 | + global $wgUploadNavigationUrl; |
880 | 880 | |
881 | 881 | wfProfileIn( __METHOD__ ); |
882 | 882 | |
Index: trunk/phase3/includes/ForkController.php |
— | — | @@ -126,8 +126,6 @@ |
127 | 127 | * Fork a number of worker processes. |
128 | 128 | */ |
129 | 129 | protected function forkWorkers( $numProcs ) { |
130 | | - global $wgMemc, $wgCaches, $wgMainCacheType; |
131 | | - |
132 | 130 | $this->prepareEnvironment(); |
133 | 131 | |
134 | 132 | // Create the child processes |
Index: trunk/phase3/includes/specials/SpecialUserrights.php |
— | — | @@ -159,7 +159,7 @@ |
160 | 160 | * @return null |
161 | 161 | */ |
162 | 162 | function saveUserGroups( $username, $reason = '' ) { |
163 | | - global $wgRequest, $wgUser, $wgGroupsAddToSelf, $wgGroupsRemoveFromSelf; |
| 163 | + global $wgRequest, $wgOut; |
164 | 164 | |
165 | 165 | $status = $this->fetchUser( $username ); |
166 | 166 | if( !$status->isOK() ) { |
Index: trunk/phase3/includes/specials/SpecialUndelete.php |
— | — | @@ -721,7 +721,7 @@ |
722 | 722 | |
723 | 723 | // Generic list of deleted pages |
724 | 724 | private function showList( $result ) { |
725 | | - global $wgLang, $wgContLang, $wgUser, $wgOut; |
| 725 | + global $wgLang, $wgUser, $wgOut; |
726 | 726 | |
727 | 727 | if( $result->numRows() == 0 ) { |
728 | 728 | $wgOut->addWikiMsg( 'undelete-no-results' ); |
— | — | @@ -1015,7 +1015,7 @@ |
1016 | 1016 | } |
1017 | 1017 | |
1018 | 1018 | private function showHistory( ) { |
1019 | | - global $wgLang, $wgUser, $wgOut; |
| 1019 | + global $wgUser, $wgOut; |
1020 | 1020 | |
1021 | 1021 | $sk = $wgUser->getSkin(); |
1022 | 1022 | if( $this->mAllowed ) { |
Index: trunk/phase3/includes/specials/SpecialNewpages.php |
— | — | @@ -105,7 +105,7 @@ |
106 | 106 | * @return String |
107 | 107 | */ |
108 | 108 | public function execute( $par ) { |
109 | | - global $wgLang, $wgOut; |
| 109 | + global $wgOut; |
110 | 110 | |
111 | 111 | $this->setHeaders(); |
112 | 112 | $this->outputHeader(); |
Index: trunk/phase3/includes/specials/SpecialImport.php |
— | — | @@ -132,7 +132,7 @@ |
133 | 133 | } |
134 | 134 | |
135 | 135 | private function showForm() { |
136 | | - global $wgUser, $wgOut, $wgRequest, $wgImportSources, $wgExportMaxLinkDepth; |
| 136 | + global $wgUser, $wgOut, $wgImportSources, $wgExportMaxLinkDepth; |
137 | 137 | if( !$wgUser->isAllowed( 'import' ) && !$wgUser->isAllowed( 'importupload' ) ) |
138 | 138 | return $wgOut->permissionRequired( 'import' ); |
139 | 139 | |
Index: trunk/phase3/includes/specials/SpecialIpblocklist.php |
— | — | @@ -362,7 +362,7 @@ |
363 | 363 | } |
364 | 364 | |
365 | 365 | function searchForm() { |
366 | | - global $wgScript, $wgRequest, $wgLang; |
| 366 | + global $wgScript, $wgLang; |
367 | 367 | |
368 | 368 | $showhide = array( wfMsg( 'show' ), wfMsg( 'hide' ) ); |
369 | 369 | $nondefaults = array(); |
Index: trunk/phase3/includes/specials/SpecialExport.php |
— | — | @@ -194,8 +194,6 @@ |
195 | 195 | * not returning full history) |
196 | 196 | */ |
197 | 197 | private function doExport( $page, $history, $list_authors ) { |
198 | | - global $wgExportMaxHistory; |
199 | | - |
200 | 198 | $pageSet = array(); // Inverted index of all pages to look up |
201 | 199 | |
202 | 200 | // Split up and normalize input |
— | — | @@ -347,7 +345,7 @@ |
348 | 346 | * Validate link depth setting, if available. |
349 | 347 | */ |
350 | 348 | private function validateLinkDepth( $depth ) { |
351 | | - global $wgExportMaxLinkDepth, $wgExportMaxLinkDepthLimit; |
| 349 | + global $wgExportMaxLinkDepth; |
352 | 350 | if( $depth < 0 ) { |
353 | 351 | return 0; |
354 | 352 | } |
Index: trunk/phase3/includes/specials/SpecialStatistics.php |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | } |
40 | 40 | |
41 | 41 | public function execute( $par ) { |
42 | | - global $wgOut, $wgRequest, $wgMessageCache, $wgMemc; |
| 42 | + global $wgOut, $wgRequest, $wgMemc; |
43 | 43 | global $wgDisableCounters, $wgMiserMode; |
44 | 44 | |
45 | 45 | $this->setHeaders(); |
— | — | @@ -123,7 +123,6 @@ |
124 | 124 | * @return string table row in HTML format |
125 | 125 | */ |
126 | 126 | private function formatRow( $text, $number, $trExtraParams = array(), $descMsg = '', $descMsgParam = '' ) { |
127 | | - global $wgStylePath; |
128 | 127 | if( $descMsg ) { |
129 | 128 | $descriptionText = wfMsgExt( $descMsg, array( 'parseinline' ), $descMsgParam ); |
130 | 129 | if ( !wfEmptyMsg( $descMsg, $descriptionText ) ) { |
Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -624,7 +624,7 @@ |
625 | 625 | } |
626 | 626 | |
627 | 627 | function processLogin() { |
628 | | - global $wgUser, $wgAuth; |
| 628 | + global $wgUser; |
629 | 629 | |
630 | 630 | switch ( $this->authenticateUserData() ) { |
631 | 631 | case self::SUCCESS: |
— | — | @@ -803,7 +803,7 @@ |
804 | 804 | * @private |
805 | 805 | */ |
806 | 806 | function mailPasswordInternal( $u, $throttle = true, $emailTitle = 'passwordremindertitle', $emailText = 'passwordremindertext' ) { |
807 | | - global $wgServer, $wgScript, $wgUser, $wgNewPasswordExpiry; |
| 807 | + global $wgServer, $wgScript, $wgNewPasswordExpiry; |
808 | 808 | |
809 | 809 | if ( $u->getEmail() == '' ) { |
810 | 810 | return new WikiError( wfMsg( 'noemail', $u->getName() ) ); |
— | — | @@ -838,7 +838,7 @@ |
839 | 839 | * @private |
840 | 840 | */ |
841 | 841 | function successfulLogin() { |
842 | | - global $wgUser, $wgOut; |
| 842 | + global $wgOut; |
843 | 843 | |
844 | 844 | # Run any hooks; display injected HTML if any, else redirect |
845 | 845 | $injected_html = ''; |
— | — | @@ -862,8 +862,7 @@ |
863 | 863 | * @private |
864 | 864 | */ |
865 | 865 | function successfulCreation() { |
866 | | - global $wgUser, $wgOut; |
867 | | - |
| 866 | + global $wgUser; |
868 | 867 | # Run any hooks; display injected HTML |
869 | 868 | $injected_html = ''; |
870 | 869 | wfRunHooks('UserLoginComplete', array(&$wgUser, &$injected_html)); |
Index: trunk/phase3/includes/specials/SpecialProtectedtitles.php |
— | — | @@ -69,7 +69,7 @@ |
70 | 70 | * Callback function to output a restriction |
71 | 71 | */ |
72 | 72 | function formatRow( $row ) { |
73 | | - global $wgUser, $wgLang, $wgContLang; |
| 73 | + global $wgUser, $wgLang; |
74 | 74 | |
75 | 75 | wfProfileIn( __METHOD__ ); |
76 | 76 | |
Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | } |
32 | 32 | |
33 | 33 | public function execute( $par ) { |
34 | | - global $wgUser, $wgOut, $wgLang, $wgRequest; |
| 34 | + global $wgUser, $wgOut, $wgRequest; |
35 | 35 | |
36 | 36 | $this->setHeaders(); |
37 | 37 | $this->outputHeader(); |
— | — | @@ -380,7 +380,7 @@ |
381 | 381 | * @param $type String |
382 | 382 | */ |
383 | 383 | protected function feed( $type ) { |
384 | | - global $wgRequest, $wgFeed, $wgFeedClasses, $wgFeedLimit; |
| 384 | + global $wgFeed, $wgFeedClasses, $wgFeedLimit; |
385 | 385 | |
386 | 386 | if( !$wgFeed ) { |
387 | 387 | global $wgOut; |
Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -135,7 +135,7 @@ |
136 | 136 | * Special page entry point |
137 | 137 | */ |
138 | 138 | public function execute( $par ) { |
139 | | - global $wgUser, $wgOut, $wgRequest; |
| 139 | + global $wgUser, $wgOut; |
140 | 140 | |
141 | 141 | $this->setHeaders(); |
142 | 142 | $this->outputHeader(); |
— | — | @@ -630,7 +630,7 @@ |
631 | 631 | * @return String: empty string if there is no warning or an HTML fragment |
632 | 632 | */ |
633 | 633 | public static function getExistsWarning( $exists ) { |
634 | | - global $wgUser, $wgContLang; |
| 634 | + global $wgUser; |
635 | 635 | |
636 | 636 | if ( !$exists ) { |
637 | 637 | return ''; |
— | — | @@ -878,7 +878,6 @@ |
879 | 879 | global $wgLang, $wgCheckFileExtensions, $wgStrictFileExtensions, |
880 | 880 | $wgFileExtensions, $wgFileBlacklist; |
881 | 881 | |
882 | | - $allowedExtensions = ''; |
883 | 882 | if( $wgCheckFileExtensions ) { |
884 | 883 | if( $wgStrictFileExtensions ) { |
885 | 884 | # Everything not permitted is banned |
Index: trunk/phase3/includes/specials/SpecialVersion.php |
— | — | @@ -72,8 +72,6 @@ |
73 | 73 | * @return wiki text showing the license information |
74 | 74 | */ |
75 | 75 | static function MediaWikiCredits() { |
76 | | - global $wgContLang; |
77 | | - |
78 | 76 | $ret = Xml::element( 'h2', array( 'id' => 'mw-version-license' ), wfMsg( 'version-license' ) ); |
79 | 77 | |
80 | 78 | // This text is always left-to-right. |
Index: trunk/phase3/includes/specials/SpecialWithoutinterwiki.php |
— | — | @@ -89,7 +89,7 @@ |
90 | 90 | } |
91 | 91 | |
92 | 92 | function wfSpecialWithoutinterwiki() { |
93 | | - global $wgRequest, $wgContLang; |
| 93 | + global $wgRequest; |
94 | 94 | list( $limit, $offset ) = wfCheckLimits(); |
95 | 95 | // Only searching the mainspace anyway |
96 | 96 | $prefix = Title::capitalize( $wgRequest->getVal( 'prefix' ), NS_MAIN ); |
Index: trunk/phase3/includes/specials/SpecialDeletedContributions.php |
— | — | @@ -276,7 +276,7 @@ |
277 | 277 | return; |
278 | 278 | } |
279 | 279 | |
280 | | - global $wgOut, $wgLang, $wgRequest; |
| 280 | + global $wgOut, $wgRequest; |
281 | 281 | |
282 | 282 | $wgOut->setPageTitle( wfMsgExt( 'deletedcontributions-title', array( 'parsemag' ) ) ); |
283 | 283 | |
— | — | @@ -463,7 +463,7 @@ |
464 | 464 | * @param $options Array: the options to be included. |
465 | 465 | */ |
466 | 466 | function getForm( $options ) { |
467 | | - global $wgScript, $wgRequest; |
| 467 | + global $wgScript; |
468 | 468 | |
469 | 469 | $options['title'] = SpecialPage::getTitleFor( 'DeletedContributions' )->getPrefixedText(); |
470 | 470 | if ( !isset( $options['target'] ) ) { |
Index: trunk/phase3/includes/specials/SpecialListusers.php |
— | — | @@ -176,7 +176,7 @@ |
177 | 177 | } |
178 | 178 | |
179 | 179 | function getPageHeader( ) { |
180 | | - global $wgScript, $wgRequest; |
| 180 | + global $wgScript; |
181 | 181 | $self = $this->getTitle(); |
182 | 182 | |
183 | 183 | # Form tag |
— | — | @@ -270,7 +270,7 @@ |
271 | 271 | * $par string (optional) A group to list users from |
272 | 272 | */ |
273 | 273 | function wfSpecialListusers( $par = null ) { |
274 | | - global $wgRequest, $wgOut; |
| 274 | + global $wgOut; |
275 | 275 | |
276 | 276 | $up = new UsersPager($par); |
277 | 277 | |
Index: trunk/phase3/includes/specials/SpecialActiveusers.php |
— | — | @@ -126,7 +126,7 @@ |
127 | 127 | } |
128 | 128 | |
129 | 129 | function getPageHeader() { |
130 | | - global $wgScript, $wgRequest; |
| 130 | + global $wgScript; |
131 | 131 | |
132 | 132 | $self = $this->getTitle(); |
133 | 133 | $limit = $this->mLimit ? Xml::hidden( 'limit', $this->mLimit ) : ''; |
Index: trunk/phase3/includes/specials/SpecialWatchlist.php |
— | — | @@ -36,7 +36,7 @@ |
37 | 37 | $wgUser->saveSettings(); |
38 | 38 | } |
39 | 39 | |
40 | | - global $wgServer, $wgScriptPath, $wgFeedClasses; |
| 40 | + global $wgFeedClasses; |
41 | 41 | $apiParams = array( 'action' => 'feedwatchlist', 'allrev' => 'allrev', |
42 | 42 | 'wlowner' => $wgUser->getName(), 'wltoken' => $wlToken ); |
43 | 43 | $feedTemplate = wfScript('api').'?'; |
Index: trunk/phase3/includes/specials/SpecialMovepage.php |
— | — | @@ -347,7 +347,7 @@ |
348 | 348 | } |
349 | 349 | |
350 | 350 | function doSubmit() { |
351 | | - global $wgOut, $wgUser, $wgRequest, $wgMaximumMovedPages, $wgLang; |
| 351 | + global $wgOut, $wgUser, $wgMaximumMovedPages, $wgLang; |
352 | 352 | global $wgFixDoubleRedirects; |
353 | 353 | |
354 | 354 | if ( $wgUser->pingLimiter( 'move' ) ) { |
Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -443,7 +443,7 @@ |
444 | 444 | * @param $terms Array: terms to highlight |
445 | 445 | */ |
446 | 446 | protected function showHit( $result, $terms ) { |
447 | | - global $wgContLang, $wgLang, $wgUser; |
| 447 | + global $wgLang, $wgUser; |
448 | 448 | wfProfileIn( __METHOD__ ); |
449 | 449 | |
450 | 450 | if( $result->isBrokenTitle() ) { |
— | — | @@ -667,7 +667,6 @@ |
668 | 668 | */ |
669 | 669 | protected function showInterwikiHit( $result, $lastInterwiki, $terms, $query, $customCaptions) { |
670 | 670 | wfProfileIn( __METHOD__ ); |
671 | | - global $wgContLang, $wgLang; |
672 | 671 | |
673 | 672 | if( $result->isBrokenTitle() ) { |
674 | 673 | wfProfileOut( __METHOD__ ); |
— | — | @@ -745,8 +744,6 @@ |
746 | 745 | * @return String: HTML form |
747 | 746 | */ |
748 | 747 | protected function powerSearchBox( $term ) { |
749 | | - global $wgScript, $wgContLang; |
750 | | - |
751 | 748 | // Groups namespaces into rows according to subject |
752 | 749 | $rows = array(); |
753 | 750 | foreach( SearchEngine::searchableNamespaces() as $namespace => $name ) { |
— | — | @@ -894,7 +891,7 @@ |
895 | 892 | } |
896 | 893 | |
897 | 894 | protected function formHeader( $term, $resultsShown, $totalNum ) { |
898 | | - global $wgContLang, $wgLang; |
| 895 | + global $wgLang; |
899 | 896 | |
900 | 897 | $out = Xml::openElement('div', array( 'class' => 'mw-search-formheader' ) ); |
901 | 898 | |
Index: trunk/phase3/includes/specials/SpecialMergeHistory.php |
— | — | @@ -157,7 +157,7 @@ |
158 | 158 | } |
159 | 159 | |
160 | 160 | private function showHistory() { |
161 | | - global $wgLang, $wgUser, $wgOut; |
| 161 | + global $wgUser, $wgOut; |
162 | 162 | |
163 | 163 | $this->sk = $wgUser->getSkin(); |
164 | 164 | |
Index: trunk/phase3/includes/specials/SpecialLinkSearch.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | function wfSpecialLinkSearch( $par ) { |
33 | 33 | |
34 | 34 | list( $limit, $offset ) = wfCheckLimits(); |
35 | | - global $wgOut, $wgRequest, $wgUrlProtocols, $wgMiserMode, $wgLang; |
| 35 | + global $wgOut, $wgUrlProtocols, $wgMiserMode, $wgLang; |
36 | 36 | $target = $GLOBALS['wgRequest']->getVal( 'target', $par ); |
37 | 37 | $namespace = $GLOBALS['wgRequest']->getIntorNull( 'namespace', null ); |
38 | 38 | |
Index: trunk/phase3/includes/specials/SpecialRevisionMove.php |
— | — | @@ -69,7 +69,7 @@ |
70 | 70 | * Mostly initializes variables and calls either showForm() or submit() |
71 | 71 | */ |
72 | 72 | public function execute( $par ) { |
73 | | - global $wgUser, $wgOut, $wgSkin; |
| 73 | + global $wgUser, $wgOut; |
74 | 74 | |
75 | 75 | $this->setHeaders(); |
76 | 76 | $this->outputHeader(); |
— | — | @@ -234,8 +234,6 @@ |
235 | 235 | * This function actually move the revision. NEVER call this function, call submit() |
236 | 236 | */ |
237 | 237 | protected function moveRevisions() { |
238 | | - global $wgOut; |
239 | | - |
240 | 238 | $oldArticle = new Article( $this->mOldTitle ); |
241 | 239 | $newArticle = new Article( $this->mNewTitle ); |
242 | 240 | |
Index: trunk/phase3/includes/specials/SpecialEmailuser.php |
— | — | @@ -217,7 +217,7 @@ |
218 | 218 | * @return Mixed: True on success, String on error |
219 | 219 | */ |
220 | 220 | public static function submit( $data ) { |
221 | | - global $wgUser, $wgUserEmailUseReplyTo, $wgSiteName; |
| 221 | + global $wgUser, $wgUserEmailUseReplyTo; |
222 | 222 | |
223 | 223 | $target = self::getTarget( $data['Target'] ); |
224 | 224 | if( !$target instanceof User ){ |
Index: trunk/phase3/includes/Metadata.php |
— | — | @@ -115,8 +115,6 @@ |
116 | 116 | } |
117 | 117 | |
118 | 118 | protected function person($name, User $user ){ |
119 | | - global $wgContLang; |
120 | | - |
121 | 119 | if( $user->isAnon() ){ |
122 | 120 | $this->element( $name, wfMsgExt( 'anonymous', array( 'parsemag' ), 1 ) ); |
123 | 121 | } else if( $real = $user->getRealName() ) { |
Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -35,8 +35,6 @@ |
36 | 36 | if ( self::$defaultPreferences ) |
37 | 37 | return self::$defaultPreferences; |
38 | 38 | |
39 | | - global $wgRCMaxAge; |
40 | | - |
41 | 39 | $defaultPreferences = array(); |
42 | 40 | |
43 | 41 | self::profilePreferences( $user, $defaultPreferences ); |
— | — | @@ -62,7 +60,6 @@ |
63 | 61 | } |
64 | 62 | |
65 | 63 | ## Prod in defaults from the user |
66 | | - global $wgDefaultUserOptions; |
67 | 64 | foreach ( $defaultPreferences as $name => &$info ) { |
68 | 65 | $prefFromUser = self::getOptionFromUser( $name, $info, $user ); |
69 | 66 | $field = HTMLForm::loadInputFromParameters( $info ); // For validation |
Index: trunk/phase3/includes/UserRightsProxy.php |
— | — | @@ -105,7 +105,7 @@ |
106 | 106 | * @return DatabaseBase or null if invalid selection |
107 | 107 | */ |
108 | 108 | public static function getDB( $database ) { |
109 | | - global $wgLocalDatabases, $wgDBname; |
| 109 | + global $wgDBname; |
110 | 110 | if( self::validDatabase( $database ) ) { |
111 | 111 | if( $database == $wgDBname ) { |
112 | 112 | // Hmm... this shouldn't happen though. :) |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -372,7 +372,7 @@ |
373 | 373 | global $wgUseAjax, $wgAjaxWatch; |
374 | 374 | global $wgVersion, $wgEnableAPI, $wgEnableWriteAPI; |
375 | 375 | global $wgRestrictionTypes; |
376 | | - global $wgMWSuggestTemplate, $wgDBname, $wgEnableMWSuggest; |
| 376 | + global $wgDBname, $wgEnableMWSuggest; |
377 | 377 | global $wgSitename; |
378 | 378 | |
379 | 379 | $ns = $wgTitle->getNamespace(); |
— | — | @@ -597,8 +597,8 @@ |
598 | 598 | * @private |
599 | 599 | */ |
600 | 600 | function setupUserCss( OutputPage $out ) { |
601 | | - global $wgRequest, $wgContLang, $wgUser; |
602 | | - global $wgAllowUserCss, $wgUseSiteCss, $wgSquidMaxage, $wgStylePath; |
| 601 | + global $wgRequest, $wgUser; |
| 602 | + global $wgAllowUserCss, $wgUseSiteCss, $wgSquidMaxage; |
603 | 603 | |
604 | 604 | wfProfileIn( __METHOD__ ); |
605 | 605 | |
— | — | @@ -1088,7 +1088,7 @@ |
1089 | 1089 | } |
1090 | 1090 | |
1091 | 1091 | function getUndeleteLink() { |
1092 | | - global $wgUser, $wgContLang, $wgLang, $wgRequest; |
| 1092 | + global $wgUser, $wgLang, $wgRequest; |
1093 | 1093 | |
1094 | 1094 | $action = $wgRequest->getVal( 'action', 'view' ); |
1095 | 1095 | |
— | — | @@ -1609,7 +1609,7 @@ |
1610 | 1610 | * Show a drop-down box of special pages |
1611 | 1611 | */ |
1612 | 1612 | function specialPagesList() { |
1613 | | - global $wgUser, $wgContLang, $wgServer, $wgRedirectScript; |
| 1613 | + global $wgContLang, $wgServer, $wgRedirectScript; |
1614 | 1614 | $pages = array_merge( SpecialPage::getRegularPages(), SpecialPage::getRestrictedPages() ); |
1615 | 1615 | foreach ( $pages as $name => $page ) { |
1616 | 1616 | $pages[$name] = $page->getDescription(); |
Index: trunk/phase3/includes/Exception.php |
— | — | @@ -197,7 +197,7 @@ |
198 | 198 | * $wgOut to output the exception. |
199 | 199 | */ |
200 | 200 | function htmlHeader() { |
201 | | - global $wgLogo, $wgSitename, $wgOutputEncoding; |
| 201 | + global $wgLogo, $wgOutputEncoding; |
202 | 202 | |
203 | 203 | if ( !headers_sent() ) { |
204 | 204 | header( 'HTTP/1.0 500 Internal Server Error' ); |
Index: trunk/phase3/includes/LinkCache.php |
— | — | @@ -132,7 +132,7 @@ |
133 | 133 | * @return Integer |
134 | 134 | */ |
135 | 135 | public function addLinkObj( $nt ) { |
136 | | - global $wgAntiLockFlags, $wgProfiler; |
| 136 | + global $wgAntiLockFlags; |
137 | 137 | wfProfileIn( __METHOD__ ); |
138 | 138 | |
139 | 139 | $key = $nt->getPrefixedDBkey(); |