Index: trunk/phase3/languages/classes/LanguageWa.php |
— | — | @@ -15,8 +15,6 @@ |
16 | 16 | ### "<day> d' <monthname>" for months starting with a vowel |
17 | 17 | ### |
18 | 18 | function date( $ts, $adj = false, $format = true, $tc = false ) { |
19 | | - global $wgUser; |
20 | | - |
21 | 19 | if ( $adj ) { $ts = $this->userAdjust( $ts, $tc ); } |
22 | 20 | $datePreference = $this->dateFormat( $format ); |
23 | 21 | |
Index: trunk/phase3/includes/filerepo/LocalFile.php |
— | — | @@ -1398,7 +1398,7 @@ |
1399 | 1399 | * Run the transaction |
1400 | 1400 | */ |
1401 | 1401 | function execute() { |
1402 | | - global $wgUser, $wgUseSquid; |
| 1402 | + global $wgUseSquid; |
1403 | 1403 | wfProfileIn( __METHOD__ ); |
1404 | 1404 | |
1405 | 1405 | $this->file->lock(); |
— | — | @@ -1540,7 +1540,7 @@ |
1541 | 1541 | * So we save the batch and let the caller call cleanup() |
1542 | 1542 | */ |
1543 | 1543 | function execute() { |
1544 | | - global $wgUser, $wgLang; |
| 1544 | + global $wgLang; |
1545 | 1545 | if ( !$this->all && !$this->ids ) { |
1546 | 1546 | // Do nothing |
1547 | 1547 | return $this->file->repo->newGood(); |
Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -481,7 +481,7 @@ |
482 | 482 | * Show a notice that the file is from a shared repository |
483 | 483 | */ |
484 | 484 | protected function printSharedImageText() { |
485 | | - global $wgOut, $wgUser; |
| 485 | + global $wgOut; |
486 | 486 | |
487 | 487 | $this->loadFile(); |
488 | 488 | |
Index: trunk/phase3/includes/api/ApiPatrol.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | * Patrols the article or provides the reason the patrol failed. |
43 | 43 | */ |
44 | 44 | public function execute() { |
45 | | - global $wgUser, $wgUseRCPatrol, $wgUseNPPatrol; |
| 45 | + global $wgUser; |
46 | 46 | $params = $this->extractRequestParams(); |
47 | 47 | |
48 | 48 | if(!isset($params['token'])) |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -443,7 +443,6 @@ |
444 | 444 | * @param $prefix String: optional prefix. As trail, only before instead of after. |
445 | 445 | */ |
446 | 446 | function makeLinkObj( $nt, $text= '', $query = '', $trail = '', $prefix = '' ) { |
447 | | - global $wgUser; |
448 | 447 | wfProfileIn( __METHOD__ ); |
449 | 448 | |
450 | 449 | $query = wfCgiToArray( $query ); |
Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -948,8 +948,6 @@ |
949 | 949 | * @private |
950 | 950 | */ |
951 | 951 | function onCookieRedirectCheck( $type ) { |
952 | | - global $wgUser; |
953 | | - |
954 | 952 | if ( !$this->hasSessionCookie() ) { |
955 | 953 | if ( $type == 'new' ) { |
956 | 954 | return $this->mainLoginForm( wfMsgExt( 'nocookiesnew', array( 'parseinline' ) ) ); |
Index: trunk/phase3/includes/specials/SpecialMergeHistory.php |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | } |
69 | 69 | |
70 | 70 | function execute() { |
71 | | - global $wgOut, $wgUser; |
| 71 | + global $wgOut; |
72 | 72 | |
73 | 73 | $wgOut->setPagetitle( wfMsgHtml( "mergehistory" ) ); |
74 | 74 | |
— | — | @@ -218,7 +218,7 @@ |
219 | 219 | } |
220 | 220 | |
221 | 221 | function formatRevisionRow( $row ) { |
222 | | - global $wgUser, $wgLang; |
| 222 | + global $wgLang; |
223 | 223 | |
224 | 224 | $rev = new Revision( $row ); |
225 | 225 | |
— | — | @@ -270,7 +270,7 @@ |
271 | 271 | } |
272 | 272 | |
273 | 273 | function merge() { |
274 | | - global $wgOut, $wgUser; |
| 274 | + global $wgOut; |
275 | 275 | # Get the titles directly from the IDs, in case the target page params |
276 | 276 | # were spoofed. The queries are done based on the IDs, so it's best to |
277 | 277 | # keep it consistent... |
Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -473,7 +473,7 @@ |
474 | 474 | * @todo This would probably look a lot nicer in a table. |
475 | 475 | */ |
476 | 476 | function formatRow( $row ) { |
477 | | - global $wgLang, $wgUser, $wgContLang; |
| 477 | + global $wgLang, $wgContLang; |
478 | 478 | wfProfileIn( __METHOD__ ); |
479 | 479 | |
480 | 480 | $sk = $this->getSkin(); |
Index: trunk/phase3/includes/specials/SpecialUndelete.php |
— | — | @@ -833,7 +833,7 @@ |
834 | 834 | * @return string HTML |
835 | 835 | */ |
836 | 836 | function showDiff( $previousRev, $currentRev ) { |
837 | | - global $wgOut, $wgUser; |
| 837 | + global $wgOut; |
838 | 838 | |
839 | 839 | $diffEngine = new DifferenceEngine(); |
840 | 840 | $diffEngine->showDiffStyle(); |
Index: trunk/phase3/includes/specials/SpecialNewpages.php |
— | — | @@ -247,7 +247,7 @@ |
248 | 248 | * @return string |
249 | 249 | */ |
250 | 250 | public function formatRow( $result ) { |
251 | | - global $wgLang, $wgContLang, $wgUser; |
| 251 | + global $wgLang, $wgContLang; |
252 | 252 | |
253 | 253 | $classes = array(); |
254 | 254 | |
Index: trunk/phase3/includes/specials/SpecialRemoveRestrictions.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | } |
48 | 48 | |
49 | 49 | function wfSpecialRemoveRestrictionsProcess( $r ) { |
50 | | - global $wgUser, $wgRequest; |
| 50 | + global $wgRequest; |
51 | 51 | $reason = $wgRequest->getVal( 'reason' ); |
52 | 52 | $result = $r->delete(); |
53 | 53 | $log = new LogPage( 'restrict' ); |
Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -288,7 +288,7 @@ |
289 | 289 | * @access private |
290 | 290 | */ |
291 | 291 | function processUpload(){ |
292 | | - global $wgUser, $wgOut, $wgFileExtensions, $wgLang; |
| 292 | + global $wgOut, $wgFileExtensions, $wgLang; |
293 | 293 | $details = null; |
294 | 294 | $value = null; |
295 | 295 | $value = $this->internalProcessUpload( $details ); |
Index: trunk/phase3/includes/specials/SpecialDeletedContributions.php |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | function formatRow( $row ) { |
110 | 110 | wfProfileIn( __METHOD__ ); |
111 | 111 | |
112 | | - global $wgLang, $wgUser; |
| 112 | + global $wgLang; |
113 | 113 | |
114 | 114 | $sk = $this->getSkin(); |
115 | 115 | |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -352,7 +352,7 @@ |
353 | 353 | * the newly-edited page. |
354 | 354 | */ |
355 | 355 | function edit() { |
356 | | - global $wgOut, $wgUser, $wgRequest; |
| 356 | + global $wgOut, $wgRequest; |
357 | 357 | // Allow extensions to modify/prevent this form or submission |
358 | 358 | if ( !wfRunHooks( 'AlternateEdit', array( &$this ) ) ) { |
359 | 359 | return; |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -3569,7 +3569,7 @@ |
3570 | 3570 | * @param $cache Boolean |
3571 | 3571 | */ |
3572 | 3572 | public function outputWikiText( $text, $cache = true ) { |
3573 | | - global $wgParser, $wgUser, $wgOut, $wgEnableParserCache, $wgUseFileCache; |
| 3573 | + global $wgParser, $wgOut, $wgEnableParserCache, $wgUseFileCache; |
3574 | 3574 | |
3575 | 3575 | $popts = $wgOut->parserOptions(); |
3576 | 3576 | $popts->setTidy(true); |
Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -774,7 +774,6 @@ |
775 | 775 | * LogEventsList::NO_ACTION_LINK Don't show restore/unblock/block links |
776 | 776 | */ |
777 | 777 | function __construct( &$reader, $flags = 0 ) { |
778 | | - global $wgUser; |
779 | 778 | wfDeprecated(__METHOD__); |
780 | 779 | $this->reader =& $reader; |
781 | 780 | $this->reader->pager->mLogEventsList->flags = $flags; |
Index: trunk/phase3/includes/User.php |
— | — | @@ -2375,7 +2375,6 @@ |
2376 | 2376 | * Log this user out. |
2377 | 2377 | */ |
2378 | 2378 | function logout() { |
2379 | | - global $wgUser; |
2380 | 2379 | if( wfRunHooks( 'UserLogout', array(&$this) ) ) { |
2381 | 2380 | $this->doLogout(); |
2382 | 2381 | } |
Index: trunk/phase3/includes/Title.php |
— | — | @@ -2996,7 +2996,7 @@ |
2997 | 2997 | * arrays (errors) as values, or an error array with numeric indices if no pages were moved |
2998 | 2998 | */ |
2999 | 2999 | public function moveSubpages( $nt, $auth = true, $reason = '', $createRedirect = true ) { |
3000 | | - global $wgUser, $wgMaximumMovedPages; |
| 3000 | + global $wgMaximumMovedPages; |
3001 | 3001 | // Check permissions |
3002 | 3002 | if( !$this->userCan( 'move-subpages' ) ) |
3003 | 3003 | return array( 'cant-move-subpages' ); |