Index: trunk/extensions/GlobalBlocking/SpecialGlobalBlock.php |
— | — | @@ -157,7 +157,7 @@ |
158 | 158 | } |
159 | 159 | |
160 | 160 | function form( $error ) { |
161 | | - global $wgUser, $wgRequest,$wgScript,$wgOut; |
| 161 | + global $wgUser, $wgScript, $wgOut; |
162 | 162 | |
163 | 163 | $form = ''; |
164 | 164 | |
Index: trunk/extensions/GlobalBlocking/ApiQueryGlobalBlocks.php |
— | — | @@ -48,34 +48,40 @@ |
49 | 49 | $fld_range = isset($prop['range']); |
50 | 50 | |
51 | 51 | $result = $this->getResult(); |
52 | | - $pageSet = $this->getPageSet(); |
53 | | - $titles = $pageSet->getTitles(); |
54 | 52 | $data = array(); |
55 | 53 | |
56 | 54 | $this->addTables('globalblocks'); |
57 | | - if($fld_id) |
| 55 | + if ($fld_id) { |
58 | 56 | $this->addFields('gb_id'); |
59 | | - if($fld_address) |
| 57 | + } |
| 58 | + if ($fld_address) { |
60 | 59 | $this->addFields(array('gb_address', 'gb_anon_only')); |
61 | | - if($fld_by) |
| 60 | + } |
| 61 | + if ($fld_by) { |
62 | 62 | $this->addFields(array('gb_by', 'gb_by_wiki')); |
63 | | - if($fld_timestamp) |
| 63 | + } |
| 64 | + if ($fld_timestamp) { |
64 | 65 | $this->addFields('gb_timestamp'); |
65 | | - if($fld_expiry) |
| 66 | + } |
| 67 | + if ($fld_expiry) { |
66 | 68 | $this->addFields('gb_expiry'); |
67 | | - if($fld_reason) |
| 69 | + } |
| 70 | + if ($fld_reason) { |
68 | 71 | $this->addFields('gb_reason'); |
69 | | - if($fld_range) |
| 72 | + } |
| 73 | + if ($fld_range) { |
70 | 74 | $this->addFields(array('gb_range_start', 'gb_range_end')); |
| 75 | + } |
71 | 76 | |
72 | 77 | $this->addOption('LIMIT', $params['limit'] + 1); |
73 | 78 | $this->addWhereRange('gb_timestamp', $params['dir'], $params['start'], $params['end']); |
74 | | - if(isset($params['ids'])) |
| 79 | + if (isset($params['ids'])) { |
75 | 80 | $this->addWhereFld('gb_id', $params['ids']); |
76 | | - if(isset($params['addresses'])) |
| 81 | + } |
| 82 | + if (isset($params['addresses'])) { |
77 | 83 | $this->addWhereFld('gb_address', $params['addresses']); |
78 | | - if(isset($params['ip'])) |
79 | | - { |
| 84 | + } |
| 85 | + if(isset($params['ip'])) { |
80 | 86 | list($ip, $range) = IP::parseCIDR($params['ip']); |
81 | 87 | if($ip && $range) |
82 | 88 | { |
Index: trunk/extensions/GlobalBlocking/SpecialGlobalBlockStatus.php |
— | — | @@ -136,7 +136,7 @@ |
137 | 137 | } |
138 | 138 | |
139 | 139 | function form( $error ) { |
140 | | - global $wgRequest,$wgUser,$wgOut; |
| 140 | + global $wgUser, $wgOut; |
141 | 141 | |
142 | 142 | $wgOut->addWikiMsg( 'globalblocking-whitelist-intro' ); |
143 | 143 | |
Index: trunk/extensions/GlobalBlocking/SpecialGlobalBlockList.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | } |
11 | 11 | |
12 | 12 | function execute( $par ) { |
13 | | - global $wgUser,$wgOut,$wgRequest; |
| 13 | + global $wgOut, $wgRequest; |
14 | 14 | |
15 | 15 | $this->setHeaders(); |
16 | 16 | $ip = isset( $par ) ? $par : $wgRequest->getText( 'ip' ); |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | } |
27 | 27 | |
28 | 28 | function showList( ) { |
29 | | - global $wgOut,$wgScript,$wgUser; |
| 29 | + global $wgOut, $wgScript; |
30 | 30 | $errors = array(); |
31 | 31 | |
32 | 32 | // Validate search IP |
— | — | @@ -106,7 +106,6 @@ |
107 | 107 | } |
108 | 108 | |
109 | 109 | function loadParameters( $ip ) { |
110 | | - global $wgUser; |
111 | 110 | $this->mSearchIP = Block::normaliseRange( trim( $ip ) ); |
112 | 111 | } |
113 | 112 | } |
Index: trunk/extensions/GlobalBlocking/SpecialRemoveGlobalBlock.php |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | } |
105 | 105 | |
106 | 106 | function form( ) { |
107 | | - global $wgScript,$wgRequest,$wgUser,$wgOut; |
| 107 | + global $wgScript, $wgUser, $wgOut; |
108 | 108 | |
109 | 109 | $form = ''; |
110 | 110 | |
Index: trunk/extensions/OggHandler/OggHandler_body.php |
— | — | @@ -426,7 +426,7 @@ |
427 | 427 | } |
428 | 428 | |
429 | 429 | function setHeaders( $out ) { |
430 | | - global $wgOggScriptVersion, $wgCortadoJarFile, $wgServer, $wgUser, $wgScriptPath; |
| 430 | + global $wgOggScriptVersion, $wgCortadoJarFile, $wgServer; |
431 | 431 | |
432 | 432 | if ( $out->hasHeadItem( 'OggHandlerScript' ) && $out->hasHeadItem( 'OggHandlerInlineScript' ) && |
433 | 433 | $out->hasHeadItem( 'OggHandlerInlineCSS' ) ) { |
Index: trunk/extensions/OpenSearchXml/ApiOpenSearchXml.php |
— | — | @@ -142,8 +142,6 @@ |
143 | 143 | * @access private |
144 | 144 | */ |
145 | 145 | function _stripMarkup( $text ) { |
146 | | - global $wgContLang; |
147 | | - |
148 | 146 | $text = substr( $text, 0, 4096 ); // don't bother with long text... |
149 | 147 | |
150 | 148 | $text = str_replace( "'''", "", $text ); |
Index: trunk/extensions/Oversight/HideRevision_body.php |
— | — | @@ -58,7 +58,7 @@ |
59 | 59 | * If no revisions are specified, prompt for a revision id |
60 | 60 | */ |
61 | 61 | function showEmpty() { |
62 | | - global $wgOut, $wgUser; |
| 62 | + global $wgOut; |
63 | 63 | $special = SpecialPage::getTitleFor( 'HideRevision' ); |
64 | 64 | |
65 | 65 | $wgOut->addHTML( |
— | — | @@ -131,8 +131,6 @@ |
132 | 132 | require_once( "$IP/includes/ChangesList.php" ); |
133 | 133 | $changes = ChangesList::newFromUser( $wgUser ); |
134 | 134 | |
135 | | - $skin = $wgUser->getSkin(); |
136 | | - |
137 | 135 | $out = $changes->beginRecentChangesList(); |
138 | 136 | while( $row = $resultSet->fetchObject() ) { |
139 | 137 | $rc = RecentChange::newFromCurRow( $row ); |
— | — | @@ -244,8 +242,6 @@ |
245 | 243 | * @return message key string for success or failure message |
246 | 244 | */ |
247 | 245 | function hideRevision( $dbw, $id ) { |
248 | | - global $wgUser; |
249 | | - |
250 | 246 | $dbw->begin(); |
251 | 247 | |
252 | 248 | $rev = Revision::newFromId( $id ); |
Index: trunk/extensions/UsabilityInitiative/PrefSwitch/PrefSwitch.classes.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | * @return string HTML |
27 | 27 | */ |
28 | 28 | public static function render( $name, $questions, $loadFromDB = false ) { |
29 | | - global $wgUser, $wgOut; |
| 29 | + global $wgUser; |
30 | 30 | // Load existing data from the database - allowing the user to change their answers |
31 | 31 | $loaded = array(); |
32 | 32 | if ( $loadFromDB ) { |
Index: trunk/extensions/UsabilityInitiative/OptIn/SpecialOptIn.php |
— | — | @@ -164,7 +164,7 @@ |
165 | 165 | /* Private Functions */ |
166 | 166 | |
167 | 167 | private function showForm( $opt ) { |
168 | | - global $wgUser, $wgOut, $wgOptInSurvey, $wgOptInFeedBackSurvey; |
| 168 | + global $wgOut, $wgOptInSurvey, $wgOptInFeedBackSurvey; |
169 | 169 | |
170 | 170 | if ( $opt == 'out' ) { |
171 | 171 | $wgOut->addWikiMsg( 'optin-survey-intro' ); |
Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php |
— | — | @@ -13,7 +13,6 @@ |
14 | 14 | private static $doOutput = false; |
15 | 15 | private static $messages = array(); |
16 | 16 | private static $variables = array(); |
17 | | - private static $literalVariables = array(); |
18 | 17 | private static $styles = array(); |
19 | 18 | private static $styleFiles = array( |
20 | 19 | 'base_sets' => array( |
Index: trunk/extensions/UsabilityInitiative/ClickTracking/SpecialClickTracking.php |
— | — | @@ -10,10 +10,8 @@ |
11 | 11 | |
12 | 12 | private static $minimum_date = '20091009'; // YYYYMMDD (+1 for today) |
13 | 13 | |
14 | | - private static $userTypes = array( "basic" => 0, "intermediate" => 1, "expert" => 2 ); |
15 | 14 | private $user_defs = array(); |
16 | | - |
17 | | - |
| 15 | + |
18 | 16 | function __construct() { |
19 | 17 | parent::__construct( 'ClickTracking' , 'clicktrack' ); |
20 | 18 | wfLoadExtensionMessages( 'ClickTracking' ); |
Index: trunk/extensions/UsabilityInitiative/PrefStats/SpecialPrefStats.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | } |
15 | 15 | |
16 | 16 | function execute( $par ) { |
17 | | - global $wgRequest, $wgOut, $wgUser, $wgPrefStatsTrackPrefs; |
| 17 | + global $wgOut, $wgUser, $wgPrefStatsTrackPrefs; |
18 | 18 | $this->setHeaders(); |
19 | 19 | |
20 | 20 | // Check permissions |
Index: trunk/extensions/CentralAuth/WikiSet.php |
— | — | @@ -9,7 +9,6 @@ |
10 | 10 | private $mName; // Display name of the group |
11 | 11 | private $mType; // Opt-in based or opt-out based |
12 | 12 | private $mWikis; // List of wikis |
13 | | - private $mVersion = self::VERSION; // Caching purposes |
14 | 13 | |
15 | 14 | static $mCacheVars = array( |
16 | 15 | 'mId', |
Index: trunk/extensions/CentralAuth/SpecialGlobalUsers.php |
— | — | @@ -97,7 +97,7 @@ |
98 | 98 | * @return string HTML li element with username and info about this user |
99 | 99 | */ |
100 | 100 | function formatRow( $row ) { |
101 | | - global $wgLang, $wgContLang; |
| 101 | + global $wgLang; |
102 | 102 | $user = htmlspecialchars( $row->gu_name ); |
103 | 103 | $info = array(); |
104 | 104 | if ( $row->gu_locked ) { |
Index: trunk/extensions/Gadgets/SpecialGadgets.php |
— | — | @@ -132,7 +132,7 @@ |
133 | 133 | * @param $gadget String Name of gadget to export |
134 | 134 | */ |
135 | 135 | public function showExportForm( $gadget ) { |
136 | | - global $wgOut, $wgRequest, $wgUser, $wgScript; |
| 136 | + global $wgOut, $wgScript; |
137 | 137 | |
138 | 138 | $gadgets = wfLoadGadgets(); |
139 | 139 | if ( !isset( $gadgets[$gadget] ) ) { |
Index: trunk/extensions/SiteMatrix/SiteMatrix_body.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | |
18 | 18 | public function __construct(){ |
19 | 19 | global $wgSiteMatrixFile, $wgSiteMatrixSites; |
20 | | - global $wgLocalDatabases, $IP, $wgConf; |
| 20 | + global $wgLocalDatabases, $wgConf; |
21 | 21 | |
22 | 22 | $wgConf->loadFullData(); |
23 | 23 | |
— | — | @@ -347,7 +347,6 @@ |
348 | 348 | |
349 | 349 | public function execute() { |
350 | 350 | global $wgLanguageNames; |
351 | | - $params = $this->extractRequestParams(); |
352 | 351 | $result = $this->getResult(); |
353 | 352 | $matrix = new SiteMatrix(); |
354 | 353 | |
Index: trunk/extensions/FlaggedRevs/forms/RevisionReviewForm.php |
— | — | @@ -324,7 +324,6 @@ |
325 | 325 | * @returns true on success, array of errors on failure |
326 | 326 | */ |
327 | 327 | private function approveRevision( Revision $rev ) { |
328 | | - global $wgMemc, $wgParser; |
329 | 328 | wfProfileIn( __METHOD__ ); |
330 | 329 | # Revision rating flags |
331 | 330 | $flags = $this->dims; |
Index: trunk/extensions/FlaggedRevs/specialpages/ReviewedVersions_body.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | } |
33 | 33 | |
34 | 34 | protected function showStableList() { |
35 | | - global $wgOut, $wgUser, $wgLang; |
| 35 | + global $wgOut, $wgLang; |
36 | 36 | # Must be a content page |
37 | 37 | if ( !FlaggedRevs::inReviewNamespace( $this->page ) ) { |
38 | 38 | $wgOut->addWikiMsg( 'reviewedversions-none', $this->page->getPrefixedText() ); |
— | — | @@ -52,7 +52,7 @@ |
53 | 53 | } |
54 | 54 | |
55 | 55 | public function formatRow( $row ) { |
56 | | - global $wgLang, $wgUser; |
| 56 | + global $wgLang; |
57 | 57 | $rdatim = $wgLang->timeanddate( wfTimestamp( TS_MW, $row->rev_timestamp ), true ); |
58 | 58 | $fdatim = $wgLang->timeanddate( wfTimestamp( TS_MW, $row->fr_timestamp ), true ); |
59 | 59 | $fdate = $wgLang->date( wfTimestamp( TS_MW, $row->fr_timestamp ), true ); |
Index: trunk/extensions/FlaggedRevs/specialpages/ProblemChanges_body.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | } |
14 | 14 | |
15 | 15 | public function execute( $par ) { |
16 | | - global $wgRequest, $wgUser, $wgOut; |
| 16 | + global $wgRequest, $wgUser; |
17 | 17 | $this->setHeaders(); |
18 | 18 | $this->skin = $wgUser->getSkin(); |
19 | 19 | $this->level = $wgRequest->getInt( 'level', - 1 ); |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | } |
42 | 42 | |
43 | 43 | public function showList( $par ) { |
44 | | - global $wgOut, $wgScript, $wgUser; |
| 44 | + global $wgOut, $wgScript; |
45 | 45 | $limit = $this->parseParams( $par ); |
46 | 46 | $pager = new ProblemChangesPager( $this, $this->level, $this->category, $this->tag ); |
47 | 47 | // Apply limit if transcluded |
— | — | @@ -92,7 +92,6 @@ |
93 | 93 | } |
94 | 94 | |
95 | 95 | protected function parseParams( $par ) { |
96 | | - global $wgLang; |
97 | 96 | $bits = preg_split( '/\s*,\s*/', trim( $par ) ); |
98 | 97 | $limit = false; |
99 | 98 | foreach ( $bits as $bit ) { |
— | — | @@ -298,7 +297,7 @@ |
299 | 298 | } |
300 | 299 | |
301 | 300 | function getQueryInfo() { |
302 | | - global $wgUser, $wgOldChangeTagsIndex; |
| 301 | + global $wgOldChangeTagsIndex; |
303 | 302 | $conds = $this->mConds; |
304 | 303 | $tables = array( 'revision', 'change_tag', 'page' ); |
305 | 304 | $fields = array( 'page_namespace' , 'page_title', 'page_latest' ); |
Index: trunk/extensions/FlaggedRevs/specialpages/ReviewedPages_body.php |
— | — | @@ -63,7 +63,7 @@ |
64 | 64 | } |
65 | 65 | |
66 | 66 | protected function showPageList() { |
67 | | - global $wgOut, $wgUser, $wgLang; |
| 67 | + global $wgOut, $wgLang; |
68 | 68 | |
69 | 69 | $pager = new ReviewedPagesPager( $this, array(), $this->type, |
70 | 70 | $this->namespace, $this->hideRedirs ); |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | } |
84 | 84 | |
85 | 85 | public function formatRow( $row ) { |
86 | | - global $wgLang, $wgUser; |
| 86 | + global $wgLang; |
87 | 87 | |
88 | 88 | $title = Title::makeTitle( $row->page_namespace, $row->page_title ); |
89 | 89 | $link = $this->skin->makeKnownLinkObj( $title, $title->getPrefixedText() ); |
Index: trunk/extensions/FlaggedRevs/api/ApiQueryFlagged.php |
— | — | @@ -29,11 +29,11 @@ |
30 | 30 | class ApiQueryFlagged extends ApiQueryBase { |
31 | 31 | |
32 | 32 | public function execute() { |
33 | | - $params = $this->extractRequestParams(); |
34 | 33 | $pageSet = $this->getPageSet(); |
35 | 34 | $pageids = array_keys( $pageSet->getGoodTitles() ); |
36 | | - if ( !$pageids ) |
| 35 | + if ( !$pageids ) { |
37 | 36 | return true; |
| 37 | + } |
38 | 38 | |
39 | 39 | // Construct SQL Query |
40 | 40 | $this->addTables( 'flaggedpages' ); |
Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -857,7 +857,7 @@ |
858 | 858 | * Adds stable version tags to page when editing |
859 | 859 | */ |
860 | 860 | public function addToEditView( EditPage $editPage ) { |
861 | | - global $wgRequest, $wgOut, $wgLang, $wgUser; |
| 861 | + global $wgOut, $wgUser; |
862 | 862 | $this->load(); |
863 | 863 | # Must be reviewable. UI may be limited to unobtrusive patrolling system. |
864 | 864 | if ( !$this->article->isReviewable() ) { |
— | — | @@ -1067,7 +1067,7 @@ |
1068 | 1068 | * Add link to stable version setting to protection form |
1069 | 1069 | */ |
1070 | 1070 | public function addVisibilityLink( &$data ) { |
1071 | | - global $wgUser, $wgRequest, $wgOut; |
| 1071 | + global $wgRequest, $wgOut; |
1072 | 1072 | $this->load(); |
1073 | 1073 | if ( FlaggedRevs::useProtectionLevels() ) { |
1074 | 1074 | return true; // simple custom levels set for action=protect |
Index: trunk/extensions/FlaggedRevs/maintenance/flagToSemiProtect.inc |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | function flag_to_semi_protect( $db, $reason ) { |
5 | | - global $wgUser, $wgFlaggedRevsNamespaces, $wgFlaggedRevsProtection; |
| 5 | + global $wgFlaggedRevsNamespaces, $wgFlaggedRevsProtection; |
6 | 6 | echo "Semi-protecting all flag-protected pages...\n"; |
7 | 7 | if ( !$wgFlaggedRevsProtection ) { |
8 | 8 | echo "\$wgFlaggedRevsProtection not enabled!\n"; |
Index: trunk/extensions/FlaggedRevs/maintenance/reviewAllPages.inc |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | $db->begin(); |
43 | 43 | FlaggedRevs::autoReviewEdit( $article, $user, $rev, $flags, true ); |
44 | 44 | FlaggedRevs::HTMLCacheUpdates( $article->getTitle() ); |
45 | | - $dbw->commit(); |
| 45 | + $db->commit(); |
46 | 46 | $changed++; |
47 | 47 | } |
48 | 48 | $count++; |
Index: trunk/extensions/OAI/OAIRepo.php |
— | — | @@ -128,7 +128,6 @@ |
129 | 129 | } |
130 | 130 | |
131 | 131 | function oaiUpdateUndelete( $title, $isnewid ) { |
132 | | - global $wgDBname; |
133 | 132 | $article = new Article($title); |
134 | 133 | $id = $article->getID(); |
135 | 134 | oaiUpdatePage( $id, 'modify' ); |
Index: trunk/extensions/AssertEdit/AssertEdit.php |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | } |
72 | 72 | |
73 | 73 | function efAssertApiEditHook( $editPage, $textBox, &$result ) { |
74 | | - global $wgOut, $wgRequest; |
| 74 | + global $wgRequest; |
75 | 75 | |
76 | 76 | $assertName = $wgRequest->getVal( 'assert' ); |
77 | 77 | $pass = true; |
Index: trunk/extensions/SecurePoll/includes/main/Base.php |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | * @param $paramString Mixed: parameter passed to the page or null |
36 | 36 | */ |
37 | 37 | public function execute( $paramString ) { |
38 | | - global $wgOut, $wgUser, $wgRequest, $wgScriptPath; |
| 38 | + global $wgOut, $wgRequest, $wgScriptPath; |
39 | 39 | |
40 | 40 | wfLoadExtensionMessages( 'SecurePoll' ); |
41 | 41 | |
Index: trunk/extensions/SecurePoll/includes/user/Auth.php |
— | — | @@ -180,7 +180,7 @@ |
181 | 181 | * @return Status |
182 | 182 | */ |
183 | 183 | function autoLogin( $election ) { |
184 | | - global $wgUser, $wgServer, $wgLang; |
| 184 | + global $wgUser; |
185 | 185 | if ( $wgUser->isAnon() ) { |
186 | 186 | return Status::newFatal( 'securepoll-not-logged-in' ); |
187 | 187 | } |
Index: trunk/extensions/SecurePoll/includes/pages/MessageDumpPage.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | |
4 | 4 | class SecurePoll_MessageDumpPage extends SecurePoll_Page { |
5 | 5 | function execute( $params ) { |
6 | | - global $wgOut, $wgUser; |
| 6 | + global $wgOut; |
7 | 7 | |
8 | 8 | if ( !count( $params ) ) { |
9 | 9 | $wgOut->addWikiMsg( 'securepoll-too-few-params' ); |
Index: trunk/extensions/SecurePoll/includes/pages/VotePage.php |
— | — | @@ -131,7 +131,6 @@ |
132 | 132 | * Shows an error message on failure. |
133 | 133 | */ |
134 | 134 | function doSubmit() { |
135 | | - global $wgOut; |
136 | 135 | $ballot = $this->election->getBallot(); |
137 | 136 | $status = $ballot->submitForm(); |
138 | 137 | if ( !$status->isOK() ) { |
Index: trunk/extensions/SecurePoll/includes/ballots/Ballot.php |
— | — | @@ -118,7 +118,6 @@ |
119 | 119 | * @return string |
120 | 120 | */ |
121 | 121 | function getForm( $prevStatus = false ) { |
122 | | - global $wgParser, $wgTitle; |
123 | 122 | $questions = $this->election->getQuestions(); |
124 | 123 | if ( $this->election->getProperty( 'shuffle-questions' ) ) { |
125 | 124 | shuffle( $questions ); |
Index: trunk/extensions/CheckUser/importLog.php |
— | — | @@ -12,7 +12,6 @@ |
13 | 13 | |
14 | 14 | $file = fopen( $log, 'r' ); |
15 | 15 | while ( false !== ( $line = fgets( $file ) ) ) { |
16 | | - $found = false; |
17 | 16 | $data = import_cu_log_line( $line ); |
18 | 17 | if ( $data ) { |
19 | 18 | $matched++; |
Index: trunk/extensions/CheckUser/cu_log_import.inc |
— | — | @@ -43,7 +43,6 @@ |
44 | 44 | $unmatched = 0; |
45 | 45 | |
46 | 46 | while ( false !== ( $line = fgets( $file ) ) ) { |
47 | | - $found = false; |
48 | 47 | $data = import_cu_log_line( $line ); |
49 | 48 | if( $data ) { |
50 | 49 | if ( $data['wiki'] != wfWikiID() && $data['wiki'] != $wgDBname ) { |
Index: trunk/extensions/Renameuser/Renameuser_body.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | */ |
28 | 28 | public function execute( $par ) { |
29 | 29 | global $wgOut, $wgUser, $wgRequest, $wgContLang, $wgLang; |
30 | | - global $wgVersion, $wgMaxNameChars, $wgCapitalLinks; |
| 30 | + global $wgCapitalLinks; |
31 | 31 | |
32 | 32 | $this->setHeaders(); |
33 | 33 | $wgOut->addWikiMsg( 'renameuser-summary' ); |
— | — | @@ -402,7 +402,7 @@ |
403 | 403 | * Do the rename operation |
404 | 404 | */ |
405 | 405 | function rename() { |
406 | | - global $wgMemc, $wgDBname, $wgAuth; |
| 406 | + global $wgMemc, $wgAuth; |
407 | 407 | |
408 | 408 | wfProfileIn( __METHOD__ ); |
409 | 409 | |