Index: trunk/extensions/CheckUser/install.inc |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | } |
75 | 75 | |
76 | 76 | function create_cu_log( $db ) { |
77 | | - global $wgDBtype, $wgCheckUserLog, $wgDBname; |
| 77 | + global $wgDBtype, $wgCheckUserLog; |
78 | 78 | if( $db->tableExists( 'cu_log' ) ) { |
79 | 79 | echo "...cu_log already exists\n"; |
80 | 80 | return; |
Index: trunk/extensions/CheckUser/CheckUser_body.php |
— | — | @@ -310,7 +310,7 @@ |
311 | 311 | * Shows first and last date and number of edits |
312 | 312 | */ |
313 | 313 | protected function doUserIPsRequest( $user , $reason = '', $period = 0 ) { |
314 | | - global $wgOut, $wgLang, $wgUser; |
| 314 | + global $wgOut, $wgLang; |
315 | 315 | |
316 | 316 | $userTitle = Title::newFromText( $user, NS_USER ); |
317 | 317 | if ( !is_null( $userTitle ) ) { |
— | — | @@ -450,7 +450,7 @@ |
451 | 451 | * Shows all edits in Recent Changes by this IP (or range) and who made them |
452 | 452 | */ |
453 | 453 | protected function doIPEditsRequest( $ip, $xfor = false, $reason = '', $period = 0 ) { |
454 | | - global $wgUser, $wgOut, $wgLang; |
| 454 | + global $wgOut, $wgLang; |
455 | 455 | $dbr = wfGetDB( DB_SLAVE ); |
456 | 456 | # Invalid IPs are passed in as a blank string |
457 | 457 | $ip_conds = $this->getIpConds( $dbr, $ip, $xfor ); |
— | — | @@ -587,7 +587,7 @@ |
588 | 588 | * Shows all edits in Recent Changes by this user |
589 | 589 | */ |
590 | 590 | protected function doUserEditsRequest( $user, $reason = '', $period = 0 ) { |
591 | | - global $wgUser, $wgOut, $wgLang; |
| 591 | + global $wgOut; |
592 | 592 | |
593 | 593 | $userTitle = Title::newFromText( $user, NS_USER ); |
594 | 594 | if ( !is_null( $userTitle ) ) { |
Index: trunk/extensions/CheckUser/CheckUser.php |
— | — | @@ -76,7 +76,6 @@ |
77 | 77 | * Saves user data into the cu_changes table |
78 | 78 | */ |
79 | 79 | function efUpdateCheckUserData( $rc ) { |
80 | | - global $wgUser; |
81 | 80 | // Extract params |
82 | 81 | extract( $rc->mAttribs ); |
83 | 82 | // Get IP |
Index: trunk/extensions/LiquidThreads/classes/Hooks.php |
— | — | @@ -35,8 +35,6 @@ |
36 | 36 | |
37 | 37 | // Custom display for new posts. |
38 | 38 | if ( $rc->mAttribs['rc_new'] ) { |
39 | | - global $wgOut; |
40 | | - |
41 | 39 | // Article link, timestamp, user |
42 | 40 | $s = ''; |
43 | 41 | $s .= $sk->link( $thread->getTitle() ); |
— | — | @@ -304,8 +302,7 @@ |
305 | 303 | } |
306 | 304 | |
307 | 305 | public static function onLoadExtensionSchemaUpdates() { |
308 | | - global $wgExtNewTables, $wgExtNewFields, $wgExtPGNewFields, |
309 | | - $wgExtPGAlteredFields, $wgExtNewIndexes, $wgDBtype; |
| 306 | + global $wgExtNewTables, $wgExtNewFields, $wgExtNewIndexes; |
310 | 307 | |
311 | 308 | $dir = realpath( dirname( __FILE__ ) . '/..' ); |
312 | 309 | |
Index: trunk/extensions/LiquidThreads/classes/ThreadHistoryPager.php |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | } |
67 | 67 | |
68 | 68 | function formatValue( $name, $value ) { |
69 | | - global $wgOut, $wgLang, $wgTitle; |
| 69 | + global $wgLang, $wgTitle; |
70 | 70 | |
71 | 71 | static $sk = null; |
72 | 72 | |
Index: trunk/extensions/LiquidThreads/classes/Threads.php |
— | — | @@ -92,7 +92,6 @@ |
93 | 93 | } |
94 | 94 | |
95 | 95 | static function where( $where, $options = array(), $bulkLoad = true ) { |
96 | | - global $wgDBprefix; |
97 | 96 | $dbr = wfGetDB( DB_SLAVE ); |
98 | 97 | |
99 | 98 | $res = $dbr->select( 'thread', '*', $where, __METHOD__, $options ); |
Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -1190,9 +1190,8 @@ |
1191 | 1191 | return; |
1192 | 1192 | } |
1193 | 1193 | |
1194 | | - global $wgOut, $wgStylePath; |
| 1194 | + global $wgOut; |
1195 | 1195 | global $wgStyleVersion; |
1196 | | - global $wgEnableJS2system; |
1197 | 1196 | global $wgLiquidThreadsExtensionPath; |
1198 | 1197 | |
1199 | 1198 | LqtHooks::$scriptVariables['wgLqtMessages'] = self::exportJSLocalisation(); |
— | — | @@ -1827,7 +1826,6 @@ |
1828 | 1827 | |
1829 | 1828 | function showThread( $thread, $levelNum = 1, $totalInLevel = 1, |
1830 | 1829 | $options = array() ) { |
1831 | | - global $wgLang; |
1832 | 1830 | |
1833 | 1831 | // Safeguard |
1834 | 1832 | if ( $thread->type() & Threads::TYPE_DELETED || |
— | — | @@ -2154,7 +2152,7 @@ |
2155 | 2153 | } |
2156 | 2154 | |
2157 | 2155 | static function getUserSignature( $user, $uid = null ) { |
2158 | | - global $wgParser, $wgOut, $wgTitle; |
| 2156 | + global $wgParser; |
2159 | 2157 | if ( !$user ) { |
2160 | 2158 | $user = User::newFromId( $uid ); |
2161 | 2159 | } |
— | — | @@ -2189,7 +2187,7 @@ |
2190 | 2188 | } |
2191 | 2189 | |
2192 | 2190 | static function signaturePST( $sig, $user ) { |
2193 | | - global $wgParser, $wgOut, $wgTitle; |
| 2191 | + global $wgParser, $wgTitle; |
2194 | 2192 | |
2195 | 2193 | $title = $wgTitle ? $wgTitle : $user->getUserPage(); |
2196 | 2194 | |
Index: trunk/extensions/LiquidThreads/classes/Dispatch.php |
— | — | @@ -28,7 +28,6 @@ |
29 | 29 | */ |
30 | 30 | $action = $request->getVal( 'action' ); |
31 | 31 | $header_actions = array( 'history', 'edit', 'submit', 'delete' ); |
32 | | - global $wgRequest; |
33 | 32 | |
34 | 33 | $lqt_action = $request->getVal( 'lqt_method' ); |
35 | 34 | if ( $action == 'edit' && $request->getVal( 'section' ) == 'new' ) { |
Index: trunk/extensions/LiquidThreads/pages/TalkpageHistoryView.php |
— | — | @@ -79,7 +79,7 @@ |
80 | 80 | } |
81 | 81 | |
82 | 82 | function formatValue( $name, $value ) { |
83 | | - global $wgOut, $wgLang, $wgTitle; |
| 83 | + global $wgLang; |
84 | 84 | |
85 | 85 | static $sk = null; |
86 | 86 | |
Index: trunk/extensions/LiquidThreads/pages/ThreadPermalinkView.php |
— | — | @@ -218,7 +218,7 @@ |
219 | 219 | } |
220 | 220 | |
221 | 221 | // Expose feed links. |
222 | | - global $wgFeedClasses, $wgScriptPath, $wgServer; |
| 222 | + global $wgFeedClasses; |
223 | 223 | $thread = $this->thread->topmostThread()->title()->getPrefixedText(); |
224 | 224 | $apiParams = array( |
225 | 225 | 'action' => 'feedthreads', |
Index: trunk/extensions/LiquidThreads/pages/SpecialNewMessages.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | if ( !defined( 'MEDIAWIKI' ) ) die; |
4 | 4 | |
5 | 5 | class SpecialNewMessages extends SpecialPage { |
6 | | - private $user, $output, $request, $title; |
| 6 | + private $user, $output, $request; |
7 | 7 | |
8 | 8 | function __construct() { |
9 | 9 | SpecialPage::SpecialPage( 'NewMessages' ); |
Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php |
— | — | @@ -231,7 +231,7 @@ |
232 | 232 | $this->output->setPageTitle( $this->title->getPrefixedText() ); |
233 | 233 | |
234 | 234 | // Expose feed links. |
235 | | - global $wgFeedClasses, $wgScriptPath, $wgServer; |
| 235 | + global $wgFeedClasses; |
236 | 236 | $apiParams = array( 'action' => 'feedthreads', 'type' => 'replies|newthreads', |
237 | 237 | 'talkpage' => $this->title->getPrefixedText() ); |
238 | 238 | $urlPrefix = wfScript( 'api' ) . '?'; |
— | — | @@ -301,7 +301,6 @@ |
302 | 302 | |
303 | 303 | $this->output->addHTML( $talkpageHeader ); |
304 | 304 | |
305 | | - global $wgRequest; |
306 | 305 | if ( $this->methodApplies( 'talkpage_new_thread' ) ) { |
307 | 306 | $params = array( 'class' => 'lqt-new-thread lqt-edit-form' ); |
308 | 307 | $this->output->addHTML( Xml::openElement( 'div', $params ) ); |
Index: trunk/extensions/LiquidThreads/api/ApiFeedLQTThreads.php |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | * Wrap the result as an RSS/Atom feed. |
45 | 45 | */ |
46 | 46 | public function execute() { |
47 | | - global $wgFeedClasses, $wgFeedLimit, $wgSitename, $wgContLanguageCode; |
| 47 | + global $wgFeedClasses; |
48 | 48 | |
49 | 49 | $params = $this->extractRequestParams(); |
50 | 50 | |
Index: trunk/extensions/LiquidThreads/api/ApiThreadAction.php |
— | — | @@ -92,8 +92,6 @@ |
93 | 93 | } |
94 | 94 | |
95 | 95 | public function actionSplit( $threads, $params ) { |
96 | | - global $wgUser; |
97 | | - |
98 | 96 | if ( count( $threads ) > 1 ) { |
99 | 97 | $this->dieUsage( 'You may only split one thread at a time', |
100 | 98 | 'too-many-threads' ); |
— | — | @@ -152,8 +150,6 @@ |
153 | 151 | } |
154 | 152 | |
155 | 153 | public function actionMerge( $threads, $params ) { |
156 | | - global $wgUser; |
157 | | - |
158 | 154 | if ( count( $threads ) < 1 ) { |
159 | 155 | $this->dieUsage( 'You must specify a thread to merge', |
160 | 156 | 'no-specified-threads' ); |
Index: trunk/extensions/LiquidThreads/LqtFunctions.php |
— | — | @@ -38,8 +38,6 @@ |
39 | 39 | } |
40 | 40 | |
41 | 41 | function lqtSetupParserFunctions( &$parser ) { |
42 | | - global $wgLiquidThreadsAllowUserControl; |
43 | | - |
44 | 42 | $parser->setFunctionHook( |
45 | 43 | 'useliquidthreads', |
46 | 44 | array( 'LqtParserFunctions', 'useLiquidThreads' ) |
Index: trunk/extensions/CentralAuth/SpecialAutoLogin.php |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | } |
16 | 16 | |
17 | 17 | function execute( $par ) { |
18 | | - global $wgRequest, $wgOut, $wgUser, $wgMemc, $IP; |
| 18 | + global $wgRequest, $wgOut, $wgMemc; |
19 | 19 | |
20 | 20 | $tempToken = $wgRequest->getVal( 'token' ); |
21 | 21 | $logout = $wgRequest->getBool( 'logout' ); |
Index: trunk/extensions/CentralAuth/SpecialWikiSets.php |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | } |
68 | 68 | |
69 | 69 | function buildMainView( $msg = '' ) { |
70 | | - global $wgOut, $wgScript, $wgUser; |
| 70 | + global $wgOut, $wgUser; |
71 | 71 | $sk = $wgUser->getSkin(); |
72 | 72 | |
73 | 73 | $msgPostfix = $this->mCanEdit ? 'rw' : 'ro'; |
— | — | @@ -272,7 +272,7 @@ |
273 | 273 | } |
274 | 274 | |
275 | 275 | function doDelete( $set ) { |
276 | | - global $wgRequest, $wgContLang; |
| 276 | + global $wgRequest; |
277 | 277 | |
278 | 278 | $set = WikiSet::newFromID( $set ); |
279 | 279 | if ( !$set ) { |
Index: trunk/extensions/CentralAuth/CentralAuthUser.php |
— | — | @@ -1705,7 +1705,6 @@ |
1706 | 1706 | } |
1707 | 1707 | |
1708 | 1708 | protected function clearCookie( $name ) { |
1709 | | - global $wgCentralAuthCookiePrefix; |
1710 | 1709 | self::setCookie( $name, '', - 86400 ); |
1711 | 1710 | } |
1712 | 1711 | |
— | — | @@ -1742,8 +1741,6 @@ |
1743 | 1742 | * Called on logout. |
1744 | 1743 | */ |
1745 | 1744 | function deleteGlobalCookies() { |
1746 | | - global $wgCentralAuthCookiePrefix; |
1747 | | - |
1748 | 1745 | $this->clearCookie( 'User' ); |
1749 | 1746 | $this->clearCookie( 'Token' ); |
1750 | 1747 | $this->clearCookie( 'Session' ); |
Index: trunk/extensions/CentralAuth/SpecialGlobalGroupPermissions.php |
— | — | @@ -112,7 +112,7 @@ |
113 | 113 | } |
114 | 114 | |
115 | 115 | function buildGroupView( $group ) { |
116 | | - global $wgOut, $wgUser, $wgScript; |
| 116 | + global $wgOut, $wgUser; |
117 | 117 | |
118 | 118 | $editable = $this->userCanEdit( $wgUser ); |
119 | 119 | |
— | — | @@ -311,8 +311,6 @@ |
312 | 312 | } |
313 | 313 | |
314 | 314 | function addLogEntry( $group, $addRights, $removeRights, $reason ) { |
315 | | - global $wgRequest; |
316 | | - |
317 | 315 | $log = new LogPage( 'gblrights' ); |
318 | 316 | |
319 | 317 | $log->addEntry( 'groupprms2', |
— | — | @@ -341,8 +339,6 @@ |
342 | 340 | } |
343 | 341 | |
344 | 342 | function addLogEntry2( $group, $old, $new, $reason ) { |
345 | | - global $wgRequest; |
346 | | - |
347 | 343 | $log = new LogPage( 'gblrights' ); |
348 | 344 | |
349 | 345 | $log->addEntry( 'groupprms3', |
— | — | @@ -363,8 +359,6 @@ |
364 | 360 | } |
365 | 361 | |
366 | 362 | function invalidateRightsCache( $group ) { |
367 | | - global $wgMemc; |
368 | | - |
369 | 363 | // Figure out all the users in this group. |
370 | 364 | $dbr = CentralAuthUser::getCentralDB(); |
371 | 365 | |
Index: trunk/extensions/CentralAuth/SpecialCentralAuth.php |
— | — | @@ -86,7 +86,7 @@ |
87 | 87 | function doSubmit() { |
88 | 88 | $deleted = false; |
89 | 89 | $globalUser = $this->mGlobalUser; |
90 | | - global $wgUser, $wgOut, $wgRequest; |
| 90 | + global $wgUser, $wgRequest; |
91 | 91 | if ( !$wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ) ) { |
92 | 92 | $this->showError( 'centralauth-token-mismatch' ); |
93 | 93 | } elseif ( $this->mMethod == 'unmerge' && $this->mCanUnmerge ) { |
Index: trunk/extensions/CentralAuth/SpecialMergeAccount.php |
— | — | @@ -209,7 +209,7 @@ |
210 | 210 | } |
211 | 211 | |
212 | 212 | function doInitialMerge() { |
213 | | - global $wgUser, $wgRequest, $wgOut, $wgCentralAuthDryRun; |
| 213 | + global $wgUser, $wgCentralAuthDryRun; |
214 | 214 | $globalUser = new CentralAuthUser( $wgUser->getName() ); |
215 | 215 | |
216 | 216 | if ( $wgCentralAuthDryRun ) { |
— | — | @@ -297,7 +297,7 @@ |
298 | 298 | } |
299 | 299 | |
300 | 300 | private function showWelcomeForm() { |
301 | | - global $wgOut, $wgUser, $wgCentralAuthDryRun; |
| 301 | + global $wgOut, $wgCentralAuthDryRun; |
302 | 302 | |
303 | 303 | if ( $wgCentralAuthDryRun ) { |
304 | 304 | $wgOut->addWikiText( wfMsg( 'centralauth-notice-dryrun' ) ); |
Index: trunk/extensions/CentralAuth/CentralAuthHooks.php |
— | — | @@ -382,8 +382,6 @@ |
383 | 383 | * Helper function for onUserLoadFromSession |
384 | 384 | */ |
385 | 385 | static function initSession( $user, $token ) { |
386 | | - global $wgAuth; |
387 | | - |
388 | 386 | $userName = $user->getName(); |
389 | 387 | wfSetupSession(); |
390 | 388 | if ( $token != @$_SESSION['globalloggedin'] ) { |
— | — | @@ -545,7 +543,7 @@ |
546 | 544 | * Destroy local login cookies so that remote logout works |
547 | 545 | */ |
548 | 546 | static function onUserSetCookies( $user, &$session, &$cookies ) { |
549 | | - global $wgCentralAuthCookies, $wgCentralAuthCookieDomain; |
| 547 | + global $wgCentralAuthCookies; |
550 | 548 | if ( !$wgCentralAuthCookies || $user->isAnon() ) { |
551 | 549 | return true; |
552 | 550 | } |
Index: trunk/extensions/CentralAuth/SpecialGlobalGroupMembership.php |
— | — | @@ -17,7 +17,6 @@ |
18 | 18 | } |
19 | 19 | |
20 | 20 | function getSuccessURL() { |
21 | | - global $wgRequest; |
22 | 21 | $knownWikis = $this->mGlobalUser->listAttached(); |
23 | 22 | $title = $this->getTitle( $this->mTarget ); |
24 | 23 | return $title->getFullURL( 'wpKnownWiki=' . urlencode( $knownWikis[0] ) ); |
— | — | @@ -54,8 +53,6 @@ |
55 | 54 | } |
56 | 55 | |
57 | 56 | function changeableGroups() { |
58 | | - global $wgUser; |
59 | | - |
60 | 57 | # # Should be a global user |
61 | 58 | if ( !$this->mGlobalUser->exists() || !$this->mGlobalUser->isAttached() ) { |
62 | 59 | return array(); |
— | — | @@ -73,7 +70,7 @@ |
74 | 71 | } |
75 | 72 | |
76 | 73 | function fetchUser( $username ) { |
77 | | - global $wgUser, $wgRequest; |
| 74 | + global $wgRequest; |
78 | 75 | |
79 | 76 | $knownwiki = $wgRequest->getVal( 'wpKnownWiki' ); |
80 | 77 | |
— | — | @@ -100,8 +97,6 @@ |
101 | 98 | } |
102 | 99 | |
103 | 100 | function addLogEntry( $user, $oldGroups, $newGroups, $reason ) { |
104 | | - global $wgRequest; |
105 | | - |
106 | 101 | $log = new LogPage( 'gblrights' ); |
107 | 102 | |
108 | 103 | $log->addEntry( 'usergroups', |
Index: trunk/extensions/CentralNotice/SpecialNoticeText.php |
— | — | @@ -226,7 +226,7 @@ |
227 | 227 | } |
228 | 228 | |
229 | 229 | private function projectName() { |
230 | | - global $wgConf, $IP; |
| 230 | + global $wgConf; |
231 | 231 | |
232 | 232 | $wgConf->loadFullData(); |
233 | 233 | |
Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -351,8 +351,7 @@ |
352 | 352 | */ |
353 | 353 | |
354 | 354 | function listNotices() { |
355 | | - global $wgOut, $wgRequest, $wgScript, $wgUser; |
356 | | - global $wgNoticeProject, $wgUserLang; |
| 355 | + global $wgOut, $wgUser, $wgUserLang; |
357 | 356 | |
358 | 357 | // Get connection |
359 | 358 | $dbr = wfGetDB( DB_SLAVE ); |
— | — | @@ -1173,8 +1172,6 @@ |
1174 | 1173 | } |
1175 | 1174 | |
1176 | 1175 | function removeTemplateFor( $noticeName, $templateName ) { |
1177 | | - global $wgOut; |
1178 | | - |
1179 | 1176 | $dbw = wfGetDB( DB_MASTER ); |
1180 | 1177 | $dbw->begin(); |
1181 | 1178 | $noticeId = $this->getNoticeId( $noticeName ); |
Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php |
— | — | @@ -155,7 +155,7 @@ |
156 | 156 | } |
157 | 157 | |
158 | 158 | function showAdd() { |
159 | | - global $wgOut, $wgUser; |
| 159 | + global $wgOut; |
160 | 160 | |
161 | 161 | // Build HTML |
162 | 162 | $htmlOut = Xml::openElement( 'form', array( 'method' => 'post' ) ); |
— | — | @@ -427,8 +427,6 @@ |
428 | 428 | } |
429 | 429 | |
430 | 430 | private function updateMessage( $text, $translation, $lang, $token = false ) { |
431 | | - global $wgUser; |
432 | | - |
433 | 431 | $title = Title::newFromText( |
434 | 432 | ( $lang == 'en' ) ? "Centralnotice-{$text}" : "Centralnotice-{$text}/{$lang}", |
435 | 433 | NS_MEDIAWIKI |
— | — | @@ -438,8 +436,6 @@ |
439 | 437 | } |
440 | 438 | |
441 | 439 | private function getTemplateId ( $templateName ) { |
442 | | - global $wgOut, $egCentralNoticeTables; |
443 | | - |
444 | 440 | $dbr = wfGetDB( DB_SLAVE ); |
445 | 441 | $res = $dbr->select( 'cn_templates', 'tmp_id', |
446 | 442 | array( 'tmp_name' => $templateName ), |
— | — | @@ -454,7 +450,7 @@ |
455 | 451 | } |
456 | 452 | |
457 | 453 | private function removeTemplate ( $name ) { |
458 | | - global $wgOut, $egCentralNoticeTables; |
| 454 | + global $wgOut; |
459 | 455 | |
460 | 456 | // FIXME: weak comparison |
461 | 457 | if ( $name == '' ) { |
— | — | @@ -487,7 +483,7 @@ |
488 | 484 | } |
489 | 485 | |
490 | 486 | private function addTemplate ( $name, $body ) { |
491 | | - global $wgOut, $egCentralNoticeTables; |
| 487 | + global $wgOut; |
492 | 488 | |
493 | 489 | if ( $body == '' || $name == '' ) { |
494 | 490 | $wgOut->addWikiMsg( 'centralnotice-null-string' ); |
— | — | @@ -530,7 +526,7 @@ |
531 | 527 | } |
532 | 528 | |
533 | 529 | private function editTemplate ( $name, $body ) { |
534 | | - global $wgOut, $egCentralNoticeTables; |
| 530 | + global $wgOut; |
535 | 531 | |
536 | 532 | if ( $body == '' || $name == '' ) { |
537 | 533 | $wgOut->addWikiMsg( 'centralnotice-null-string' ); |
Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewExamine.php |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | |
6 | 6 | class AbuseFilterViewExamine extends AbuseFilterView { |
7 | 7 | function show() { |
8 | | - global $wgOut, $wgUser; |
| 8 | + global $wgOut; |
9 | 9 | |
10 | 10 | $wgOut->setPageTitle( wfMsg( 'abusefilter-examine' ) ); |
11 | 11 | $wgOut->addWikiMsg( 'abusefilter-examine-intro' ); |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | } |
27 | 27 | |
28 | 28 | function showSearch() { |
29 | | - global $wgUser, $wgOut; |
| 29 | + global $wgOut; |
30 | 30 | |
31 | 31 | // Add selector |
32 | 32 | $selector = ''; |
Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewRevert.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | function show() { |
8 | 8 | $filter = $this->mPage->mFilter; |
9 | 9 | |
10 | | - global $wgUser, $wgRequest, $wgOut; |
| 10 | + global $wgUser, $wgOut; |
11 | 11 | $sk = $wgUser->getSkin(); |
12 | 12 | |
13 | 13 | if ( !$wgUser->isAllowed( 'abusefilter-revert' ) ) { |
Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewTools.php |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | |
6 | 6 | class AbuseFilterViewTools extends AbuseFilterView { |
7 | 7 | function show() { |
8 | | - global $wgRequest, $wgOut, $wgUser; |
| 8 | + global $wgOut, $wgUser; |
9 | 9 | |
10 | 10 | // Header |
11 | 11 | $wgOut->setSubTitle( wfMsg( 'abusefilter-tools-subtitle' ) ); |
Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewHistory.php |
— | — | @@ -221,7 +221,7 @@ |
222 | 222 | ), |
223 | 223 | ); |
224 | 224 | |
225 | | - global $wgRequest, $wgUser; |
| 225 | + global $wgUser; |
226 | 226 | |
227 | 227 | if ( $this->mUser ) { |
228 | 228 | $info['conds']['afh_user_text'] = $this->mUser; |
Index: trunk/extensions/AbuseFilter/AbuseFilter.class.php |
— | — | @@ -692,7 +692,7 @@ |
693 | 693 | } |
694 | 694 | |
695 | 695 | public static function filterAction( $vars, $title ) { |
696 | | - global $wgUser, $wgMemc, $wgTitle; |
| 696 | + global $wgUser, $wgTitle; |
697 | 697 | |
698 | 698 | wfProfileIn( __METHOD__ ); |
699 | 699 | |
Index: trunk/extensions/AbuseFilter/SpecialAbuseLog.php |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | } |
72 | 72 | |
73 | 73 | function searchForm() { |
74 | | - global $wgOut, $wgUser; |
| 74 | + global $wgOut; |
75 | 75 | |
76 | 76 | $output = Xml::element( 'legend', null, wfMsg( 'abusefilter-log-search' ) ); |
77 | 77 | $fields = array(); |
Index: trunk/extensions/Cite/SpecialCite_body.php |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | } |
16 | 16 | |
17 | 17 | function execute( $par ) { |
18 | | - global $wgOut, $wgRequest, $wgUseTidy; |
| 18 | + global $wgRequest, $wgUseTidy; |
19 | 19 | wfLoadExtensionMessages( 'SpecialCite' ); |
20 | 20 | |
21 | 21 | // Having tidy on causes whitespace and <pre> tags to |
Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -369,8 +369,6 @@ |
370 | 370 | |
371 | 371 | // TODO: fix the name |
372 | 372 | public static function test( &$article, &$outputDone, &$pcache ) { |
373 | | - global $wgOut; |
374 | | - |
375 | 373 | if ( !$article->getOldID() ) { |
376 | 374 | self::header( $article->getTitle() ); |
377 | 375 | } |
— | — | @@ -379,8 +377,6 @@ |
380 | 378 | } |
381 | 379 | |
382 | 380 | public static function header( Title $title ) { |
383 | | - global $wgLang, $wgUser; |
384 | | - |
385 | 381 | $page = TranslatablePage::newFromTitle( $title ); |
386 | 382 | $marked = $page->getMarkedTag(); |
387 | 383 | $ready = $page->getReadyTag(); |
Index: trunk/extensions/Translate/tag/SpecialPageTranslation.php |
— | — | @@ -338,7 +338,7 @@ |
339 | 339 | |
340 | 340 | /** Displays the sections and changes for the user to review */ |
341 | 341 | public function showPage( TranslatablePage $page, Array $sections ) { |
342 | | - global $wgOut, $wgScript, $wgLang; |
| 342 | + global $wgOut; |
343 | 343 | |
344 | 344 | $wgOut->setSubtitle( $this->user->getSkin()->link( $page->getTitle() ) ); |
345 | 345 | TranslateUtils::injectCSS(); |
Index: trunk/extensions/Translate/SpecialTranslationChanges.php |
— | — | @@ -199,10 +199,8 @@ |
200 | 200 | * GLOBALS: $wgLang |
201 | 201 | */ |
202 | 202 | private static function makeBlock( $tl, $lang, $rowCache, $rowId ) { |
203 | | - global $wgLang; |
204 | | - |
205 | 203 | $changes = count( $rowCache ); |
206 | | - $output = Xml::tags( 'h3', null, "$tl $lang ($nchanges)" ); |
| 204 | + $output = Xml::tags( 'h3', null, "$tl $lang ($changes)" ); |
207 | 205 | $output .= Xml::tags( 'ul', |
208 | 206 | array( 'id' => $rowId, 'style' => 'display: none' ), |
209 | 207 | implode( "\n", $rowCache ) |
Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -230,7 +230,7 @@ |
231 | 231 | } |
232 | 232 | |
233 | 233 | private static function editBoxes( $object ) { |
234 | | - global $wgTranslateDocumentationLanguageCode, $wgOut, $wgRequest; |
| 234 | + global $wgOut, $wgRequest; |
235 | 235 | |
236 | 236 | $th = new TranslationHelpers( $object->mTitle ); |
237 | 237 | if ( $object->firsttime && !$wgRequest->getCheck( 'oldid' ) && !$wgRequest->getCheck( 'undo' ) ) { |
Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -534,7 +534,7 @@ |
535 | 535 | function wfAddNamespace( $id, $name ) { |
536 | 536 | global $wgExtraNamespaces, $wgContentNamespaces, |
537 | 537 | $wgTranslateMessageNamespaces, $wgNamespaceProtection, |
538 | | - $wgNamespacesWithSubpages, $wgCapitalLinkOverrides; |
| 538 | + $wgNamespacesWithSubpages; |
539 | 539 | |
540 | 540 | $constant = strtoupper( "NS_$name" ); |
541 | 541 | |
Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -585,7 +585,7 @@ |
586 | 586 | } |
587 | 587 | |
588 | 588 | protected function getOtherLanguagesBox() { |
589 | | - global $wgLang, $wgUser; |
| 589 | + global $wgLang; |
590 | 590 | |
591 | 591 | $code = $this->targetLanguage; |
592 | 592 | $page = $this->page; |
— | — | @@ -635,7 +635,7 @@ |
636 | 636 | } |
637 | 637 | |
638 | 638 | public function getDocumentationBox() { |
639 | | - global $wgTranslateDocumentationLanguageCode, $wgUser, $wgOut; |
| 639 | + global $wgTranslateDocumentationLanguageCode, $wgOut; |
640 | 640 | |
641 | 641 | if ( !$wgTranslateDocumentationLanguageCode ) { |
642 | 642 | return null; |
— | — | @@ -853,8 +853,6 @@ |
854 | 854 | } |
855 | 855 | |
856 | 856 | public function getLazySuggestionBox() { |
857 | | - global $wgScript; |
858 | | - |
859 | 857 | if ( $this->group === null || !$this->targetLanguage ) { |
860 | 858 | return null; |
861 | 859 | } |
Index: trunk/extensions/Translate/utils/MessageTable.php |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | } |
57 | 57 | |
58 | 58 | public function includeAssets() { |
59 | | - global $wgOut, $wgScript; |
| 59 | + global $wgOut; |
60 | 60 | |
61 | 61 | // Our class |
62 | 62 | $wgOut->addScriptFile( TranslateUtils::assetPath( 'js/quickedit.js' ) ); |
Index: trunk/extensions/Translate/utils/MessageIndexRebuilder.php |
— | — | @@ -39,8 +39,6 @@ |
40 | 40 | self::checkAndAdd( $hugearray, $g, true ); |
41 | 41 | } |
42 | 42 | |
43 | | - global $wgCacheDirectory; |
44 | | - |
45 | 43 | $filename = TranslateUtils::cacheFile( 'translate_messageindex.cdb' ); |
46 | 44 | |
47 | 45 | $writer = CdbWriter::open( $filename ); |
Index: trunk/extensions/Translate/SpecialTranslations.php |
— | — | @@ -106,7 +106,7 @@ |
107 | 107 | } |
108 | 108 | |
109 | 109 | function showTranslations( Title $title ) { |
110 | | - global $wgOut, $wgUser, $wgContLang, $wgLang; |
| 110 | + global $wgOut, $wgUser; |
111 | 111 | |
112 | 112 | $sk = $wgUser->getSkin(); |
113 | 113 | |
Index: trunk/extensions/Translate/scripts/poimport.php |
— | — | @@ -178,7 +178,6 @@ |
179 | 179 | private $changes = array(); |
180 | 180 | private $dryrun = true; |
181 | 181 | private $allclear = false; |
182 | | - private $user = ''; |
183 | 182 | private $group = null; |
184 | 183 | |
185 | 184 | /** |
Index: trunk/extensions/Translate/TranslateTasks.php |
— | — | @@ -253,7 +253,7 @@ |
254 | 254 | } |
255 | 255 | |
256 | 256 | public function output() { |
257 | | - global $IP, $wgServer, $wgTranslateDocumentationLanguageCode; |
| 257 | + global $wgServer, $wgTranslateDocumentationLanguageCode; |
258 | 258 | |
259 | 259 | $lang = Language::factory( 'en' ); |
260 | 260 | |
Index: trunk/extensions/Translate/RcFilter.php |
— | — | @@ -59,8 +59,6 @@ |
60 | 60 | * @return Boolean true |
61 | 61 | */ |
62 | 62 | public static function translationFilterForm( &$items, $opts ) { |
63 | | - global $wgRequest; |
64 | | - |
65 | 63 | $opts->consumeValue( 'translations' ); |
66 | 64 | $default = $opts->getValue( 'translations' ); |
67 | 65 | |
Index: trunk/extensions/Translate/TranslateUtils.php |
— | — | @@ -166,8 +166,6 @@ |
167 | 167 | } |
168 | 168 | |
169 | 169 | public static function languageSelector( $language, $selectedId ) { |
170 | | - global $wgLang; |
171 | | - |
172 | 170 | if ( is_callable( array( 'LanguageNames', 'getNames' ) ) ) { |
173 | 171 | $languages = LanguageNames::getNames( $language, |
174 | 172 | LanguageNames::FALLBACK_NORMAL, |
— | — | @@ -304,7 +302,7 @@ |
305 | 303 | } |
306 | 304 | |
307 | 305 | public static function snippet( &$text, $length = 10 ) { |
308 | | - global $wgLegalTitleChars, $wgContLang; |
| 306 | + global $wgContLang; |
309 | 307 | |
310 | 308 | $snippet = preg_replace( "/[^\p{L}]/u", ' ', $text ); |
311 | 309 | $snippet = preg_replace( "/ {2,}/u", ' ', $snippet ); |
Index: trunk/extensions/Translate/SpecialTranslationStats.php |
— | — | @@ -169,7 +169,6 @@ |
170 | 170 | } |
171 | 171 | |
172 | 172 | protected function eLanguage( $name, FormOptions $opts ) { |
173 | | - global $wgLang; |
174 | 173 | $value = $opts[$name]; |
175 | 174 | |
176 | 175 | $select = $this->languageSelector(); |
— | — | @@ -206,7 +205,6 @@ |
207 | 206 | } |
208 | 207 | |
209 | 208 | protected function eGroup( $name, FormOptions $opts ) { |
210 | | - global $wgLang; |
211 | 209 | $value = $opts[$name]; |
212 | 210 | |
213 | 211 | $select = $this->groupSelector(); |
Index: trunk/extensions/Translate/SpecialMagic.php |
— | — | @@ -115,7 +115,7 @@ |
116 | 116 | * GLOBALS: $wgRequest, $wgOut, $wgUser, $wgLang |
117 | 117 | */ |
118 | 118 | public function execute( $parameters ) { |
119 | | - global $wgUser, $wgOut, $wgRequest, $wgLang; |
| 119 | + global $wgUser, $wgOut, $wgRequest; |
120 | 120 | |
121 | 121 | $this->setup( $parameters ); |
122 | 122 | $this->setHeaders(); |