Index: trunk/phase3/maintenance/addwiki.php |
— | — | @@ -71,6 +71,7 @@ |
72 | 72 | } |
73 | 73 | } |
74 | 74 | |
| 75 | + global $wgTitle, $wgArticle; |
75 | 76 | $wgTitle = Title::newMainPage(); |
76 | 77 | $wgArticle = new Article( $wgTitle ); |
77 | 78 | $ucsite = ucfirst( $site ); |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -1345,7 +1345,7 @@ |
1346 | 1346 | * for when rate limiting has triggered. |
1347 | 1347 | */ |
1348 | 1348 | public function rateLimited() { |
1349 | | - global $wgOut; |
| 1349 | + global $wgOut, $wgTitle; |
1350 | 1350 | |
1351 | 1351 | $this->setPageTitle(wfMsg('actionthrottled')); |
1352 | 1352 | $this->setRobotPolicy( 'noindex,follow' ); |
Index: trunk/phase3/languages/classes/LanguageKk_cyrl.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | } |
25 | 25 | |
26 | 26 | function convertGrammarKk_cyrl( $word, $case ) { |
27 | | - |
| 27 | + global $wgGrammarForms; |
28 | 28 | if ( isset( $wgGrammarForms['kk-kz'][$case][$word] ) ) { |
29 | 29 | return $wgGrammarForms['kk-kz'][$case][$word]; |
30 | 30 | } |
Index: trunk/extensions/MultiUpload/SpecialMultipleUpload.php |
— | — | @@ -186,7 +186,6 @@ |
187 | 187 | */ |
188 | 188 | function uploadWarning( $warning ) { |
189 | 189 | global $wgOut; |
190 | | - global $wgUseCopyrightUpload; |
191 | 190 | |
192 | 191 | if (!$this->mHasWarning) { |
193 | 192 | $titleObj = Title::makeTitle( NS_SPECIAL, 'MultipleUpload' ); |
— | — | @@ -228,7 +227,7 @@ |
229 | 228 | } |
230 | 229 | |
231 | 230 | function showWarningOptions() { |
232 | | - global $wgOut, $wgMaxUploadFiles; |
| 231 | + global $wgOut, $wgMaxUploadFiles, $wgUseCopyrightUpload; |
233 | 232 | $save = wfMsgHtml( 'multipleupload-saveallfiles' ); |
234 | 233 | $reupload = wfMsgHtml( 'reupload' ); |
235 | 234 | $iw = wfMsgWikiHtml( 'multipleupload-ignoreallwarnings' ); |
Index: trunk/extensions/Makesysop/SpecialMakesysop_body.php |
— | — | @@ -232,6 +232,7 @@ |
233 | 233 | |
234 | 234 | /** @see UserrightsForm::saveUserGroups in MediaWiki */ |
235 | 235 | function saveUserGroups( $username, $removegroup, $addgroup, $reason = '') { |
| 236 | + global $wgOut; |
236 | 237 | $split = $this->splitUsername( $username ); |
237 | 238 | if( WikiError::isError( $split ) ) { |
238 | 239 | $wgOut->addWikiText( wfMsg( 'makesysop-nodatabase', $split->getMessage() ) ); |
Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage.php |
— | — | @@ -448,7 +448,7 @@ |
449 | 449 | * Removes flagged revision data for this page/id set |
450 | 450 | */ |
451 | 451 | function unapproveRevision( $row=NULL ) { |
452 | | - global $wgUser, $wgFlaggedRevsWatch; |
| 452 | + global $wgUser, $wgParser, $wgFlaggedRevsWatch; |
453 | 453 | |
454 | 454 | if( is_null($row) ) return false; |
455 | 455 | |
Index: trunk/extensions/Cache404/extensions/Cache404.php |
— | — | @@ -633,8 +633,8 @@ |
634 | 634 | global $wgUsePathInfo, $wgFilterCallback, $wgRequest, $wgUser, $wgOut, $_SERVER; |
635 | 635 | global $wgAllowUserJs, $wgAllowUserCss, $wgUseSiteCss, $wgUseSiteJs, $wgCachePages; |
636 | 636 | global $wgCache404SavedCallback; |
637 | | - global $wgLang, $wgContLang, $wgMessageCache, $messageMemc, $wgUseDatabaseMessages, |
638 | | - $wgMsgCacheExpiry, $wgDBname; |
| 637 | + global $wgLang, $wgLanguageCode, $wgContLang, $wgContLanguageCode, $wgMessageCache, |
| 638 | + $messageMemc, $wgUseDatabaseMessages, $wgMsgCacheExpiry, $wgDBname; |
639 | 639 | |
640 | 640 | # Prevent user options, user new talk |
641 | 641 | |
Index: trunk/extensions/Translate/fuzzy.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | } |
98 | 98 | |
99 | 99 | private function updateMessage( $title, $text ) { |
100 | | - global $wgTitle; |
| 100 | + global $wgTitle, $wgArticle; |
101 | 101 | $wgTitle = Title::newFromText( "Mediawiki:$title" ); |
102 | 102 | |
103 | 103 | echo "Updating {$wgTitle->getPrefixedText()}... "; |
— | — | @@ -148,4 +148,4 @@ |
149 | 149 | exit( 1 ); |
150 | 150 | } |
151 | 151 | |
152 | | -*/ |
\ No newline at end of file |
| 152 | +*/ |
Index: trunk/extensions/Wikidata/OmegaWiki/DefinedMeaningModel.php |
— | — | @@ -240,7 +240,7 @@ |
241 | 241 | # $wgTitle, $wgUser, $wgRequest; |
242 | 242 | |
243 | 243 | global |
244 | | - $wgUser; |
| 244 | + $wgUser, $wgOut; |
245 | 245 | |
246 | 246 | if(!$wgUser->isAllowed('wikidata-copy')) { |
247 | 247 | $wgOut->addWikiText(wfMsgSc("noedit",$dc->fetchName())); |
Index: trunk/extensions/regexBlock/regexBlockCore.php |
— | — | @@ -199,6 +199,7 @@ |
200 | 200 | @param $user_ip String |
201 | 201 | */ |
202 | 202 | function wfGetRegexBlocked ($blocker, $user, $user_ip) { |
| 203 | + global $wgContactLink; |
203 | 204 | $names = wfGetRegexBlockedData ($blocker,$user,REGEXBLOCK_MODE_NAMES); |
204 | 205 | $ips = wfGetRegexBlockedData ($blocker,$user,REGEXBLOCK_MODE_IPS); |
205 | 206 | $username = $user->getName () ; |