Index: trunk/phase3/maintenance/storage/fixBug20757.php |
— | — | @@ -130,7 +130,6 @@ |
131 | 131 | } |
132 | 132 | |
133 | 133 | // Process the stubs |
134 | | - $stubsToFix = array(); |
135 | 134 | foreach ( $stubs as $primaryId => $stub ) { |
136 | 135 | $secondaryId = $stub['secondaryId']; |
137 | 136 | if ( !isset( $trackedBlobs[$secondaryId] ) ) { |
Index: trunk/phase3/maintenance/parserTests.inc |
— | — | @@ -335,7 +335,6 @@ |
336 | 336 | $user = new User(); |
337 | 337 | $options = ParserOptions::newFromUser( $user ); |
338 | 338 | |
339 | | - $m = array(); |
340 | 339 | if ( isset( $opts['title'] ) ) { |
341 | 340 | $titleText = $opts['title']; |
342 | 341 | } |
— | — | @@ -349,7 +348,6 @@ |
350 | 349 | $parser = $this->getParser( $preprocessor ); |
351 | 350 | $title = Title::newFromText( $titleText ); |
352 | 351 | |
353 | | - $matches = array(); |
354 | 352 | if ( isset( $opts['pst'] ) ) { |
355 | 353 | $out = $parser->preSaveTransform( $input, $title, $user, $options ); |
356 | 354 | } elseif ( isset( $opts['msg'] ) ) { |
Index: trunk/phase3/maintenance/importUseModWiki.php |
— | — | @@ -199,8 +199,6 @@ |
200 | 200 | |
201 | 201 | function importPage( $title ) |
202 | 202 | { |
203 | | - global $usercache; |
204 | | - |
205 | 203 | echo "\n<!-- Importing page " . xmlCommentSafe( $title ) . " -->\n"; |
206 | 204 | $page = fetchPage( $title ); |
207 | 205 | |
Index: trunk/phase3/maintenance/rebuildImages.php |
— | — | @@ -171,8 +171,6 @@ |
172 | 172 | } |
173 | 173 | |
174 | 174 | function addMissingImage( $filename, $fullpath ) { |
175 | | - $fname = 'ImageBuilder::addMissingImage'; |
176 | | - |
177 | 175 | $timestamp = $this->dbw->timestamp( filemtime( $fullpath ) ); |
178 | 176 | |
179 | 177 | global $wgContLang; |
Index: trunk/phase3/maintenance/populateLogSearch.php |
— | — | @@ -56,7 +56,6 @@ |
57 | 57 | $this->output( "...doing log_id from $blockStart to $blockEnd\n" ); |
58 | 58 | $cond = "log_id BETWEEN $blockStart AND $blockEnd"; |
59 | 59 | $res = $db->select( 'logging', '*', $cond, __FUNCTION__ ); |
60 | | - $batch = array(); |
61 | 60 | foreach ( $res as $row ) { |
62 | 61 | // RevisionDelete logs - revisions |
63 | 62 | if ( LogEventsList::typeAction( $row, $delTypes, 'revision' ) ) { |
Index: trunk/phase3/skins/CologneBlue.php |
— | — | @@ -271,7 +271,6 @@ |
272 | 272 | |
273 | 273 | $s .= $this->menuHead( 'qbmyoptions' ); |
274 | 274 | if ( $wgUser->isLoggedIn() ) { |
275 | | - $name = $wgUser->getName(); |
276 | 275 | $tl = $this->link( |
277 | 276 | $wgUser->getTalkPage(), |
278 | 277 | wfMsg( 'mytalk' ), |
Index: trunk/phase3/skins/Nostalgia.php |
— | — | @@ -73,7 +73,6 @@ |
74 | 74 | if ( $wgUser->isAnon() ) { |
75 | 75 | $s .= $sep . $this->specialLink( 'userlogin' ); |
76 | 76 | } else { |
77 | | - $name = $wgUser->getName(); |
78 | 77 | /* show user page and user talk links */ |
79 | 78 | $s .= $sep . $this->link( $wgUser->getUserPage(), wfMsgHtml( 'mypage' ) ); |
80 | 79 | $s .= $sep . $this->link( $wgUser->getTalkPage(), wfMsgHtml( 'mytalk' ) ); |
Index: trunk/phase3/includes/parser/Preprocessor_Hash.php |
— | — | @@ -853,7 +853,6 @@ |
854 | 854 | $title = $this->title; |
855 | 855 | } |
856 | 856 | if ( $args !== false ) { |
857 | | - $xpath = false; |
858 | 857 | if ( $args instanceof PPNode_Hash_Array ) { |
859 | 858 | $args = $args->value; |
860 | 859 | } elseif ( !is_array( $args ) ) { |
Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -628,7 +628,6 @@ |
629 | 629 | * Parser function to extension tag adaptor |
630 | 630 | */ |
631 | 631 | public static function tagObj( $parser, $frame, $args ) { |
632 | | - $xpath = false; |
633 | 632 | if ( !count( $args ) ) { |
634 | 633 | return ''; |
635 | 634 | } |
Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -437,7 +437,6 @@ |
438 | 438 | 'onchange' => 'document.pageselector.submit();', |
439 | 439 | ); |
440 | 440 | |
441 | | - $option = array(); |
442 | 441 | for ( $i = 1; $i <= $count; $i++ ) { |
443 | 442 | $options[] = Xml::option( $wgLang->formatNum( $i ), $i, $i == $page ); |
444 | 443 | } |
— | — | @@ -530,7 +529,6 @@ |
531 | 530 | $wrap = "<div class=\"sharedUploadNotice\">\n$1\n</div>\n"; |
532 | 531 | $repo = $this->img->getRepo()->getDisplayName(); |
533 | 532 | |
534 | | - $msg = ''; |
535 | 533 | if ( $descUrl && $descText && wfMsgNoTrans( 'sharedupload-desc-here' ) !== '-' ) { |
536 | 534 | $wgOut->wrapWikiMsg( $wrap, array( 'sharedupload-desc-here', $repo, $descUrl ) ); |
537 | 535 | } elseif ( $descUrl && wfMsgNoTrans( 'sharedupload-desc-there' ) !== '-' ) { |
Index: trunk/phase3/includes/db/DatabaseIbm_db2.php |
— | — | @@ -1101,7 +1101,6 @@ |
1102 | 1102 | $this->begin(); |
1103 | 1103 | |
1104 | 1104 | if ( !$ignore ) { |
1105 | | - $first = true; |
1106 | 1105 | foreach ( $args as $row ) { |
1107 | 1106 | // insert each row into the database |
1108 | 1107 | $res = $res & $this->execute($stmt, $row); |
Index: trunk/phase3/includes/db/LoadBalancer.php |
— | — | @@ -217,7 +217,6 @@ |
218 | 218 | $this->getLoadMonitor()->scaleLoads( $nonErrorLoads, $group, $wiki ); |
219 | 219 | |
220 | 220 | $i = false; |
221 | | - $found = false; |
222 | 221 | $laggedSlaveMode = false; |
223 | 222 | |
224 | 223 | # First try quickly looking through the available servers for a server that |
Index: trunk/phase3/includes/Sanitizer.php |
— | — | @@ -749,7 +749,7 @@ |
750 | 750 | |
751 | 751 | // Decode escape sequences and line continuation |
752 | 752 | // See the grammar in the CSS 2 spec, appendix D. |
753 | | - static $decodeRegex, $reencodeTable; |
| 753 | + static $decodeRegex; |
754 | 754 | if ( !$decodeRegex ) { |
755 | 755 | $space = '[\\x20\\t\\r\\n\\f]'; |
756 | 756 | $nl = '(?:\\n|\\r\\n|\\r|\\f)'; |
Index: trunk/phase3/includes/ConfEditor.php |
— | — | @@ -836,7 +836,6 @@ |
837 | 837 | * not call except from popPath() or nextPath(). |
838 | 838 | */ |
839 | 839 | function endPath() { |
840 | | - $i = count( $this->pathStack ) - 1; |
841 | 840 | $key = ''; |
842 | 841 | foreach ( $this->pathStack as $pathInfo ) { |
843 | 842 | if ( $key !== '' ) { |
Index: trunk/phase3/includes/specials/SpecialIpblocklist.php |
— | — | @@ -270,7 +270,6 @@ |
271 | 271 | } |
272 | 272 | |
273 | 273 | $conds = array(); |
274 | | - $matches = array(); |
275 | 274 | // Is user allowed to see all the blocks? |
276 | 275 | if ( !$wgUser->isAllowed( 'hideuser' ) ) |
277 | 276 | $conds['ipb_deleted'] = 0; |
Index: trunk/phase3/includes/specials/SpecialMergeHistory.php |
— | — | @@ -455,7 +455,6 @@ |
456 | 456 | } |
457 | 457 | |
458 | 458 | function formatRow( $row ) { |
459 | | - $block = new Block; |
460 | 459 | return $this->mForm->formatRevisionRow( $row ); |
461 | 460 | } |
462 | 461 | |
Index: trunk/phase3/languages/LanguageConverter.php |
— | — | @@ -225,7 +225,6 @@ |
226 | 226 | */ |
227 | 227 | protected function getHeaderVariant() { |
228 | 228 | global $wgRequest; |
229 | | - $ret = null; |
230 | 229 | |
231 | 230 | if ( $this->mHeaderVariant ) { |
232 | 231 | return $this->mHeaderVariant; |
— | — | @@ -544,7 +543,6 @@ |
545 | 544 | $out = ''; |
546 | 545 | $length = strlen( $text ); |
547 | 546 | while ( $startPos < $length ) { |
548 | | - $m = false; |
549 | 547 | $pos = strpos( $text, '-{', $startPos ); |
550 | 548 | |
551 | 549 | if ( $pos === false ) { |
— | — | @@ -1280,7 +1278,6 @@ |
1281 | 1279 | $variant = $this->mConverter->getPreferredVariant(); |
1282 | 1280 | } |
1283 | 1281 | |
1284 | | - $variants = $this->mConverter->mVariants; |
1285 | 1282 | $this->parseFlags(); |
1286 | 1283 | $flags = $this->mFlags; |
1287 | 1284 | |
Index: trunk/phase3/languages/classes/LanguageKu.php |
— | — | @@ -180,10 +180,8 @@ |
181 | 181 | * - ommiting roman numbers |
182 | 182 | */ |
183 | 183 | function translate( $text, $toVariant ) { |
184 | | - $breaks = '[^\w\x80-\xff]'; |
185 | | - |
186 | 184 | /* From Kazakh interface, maybe we need it later |
187 | | - * |
| 185 | + $breaks = '[^\w\x80-\xff]'; |
188 | 186 | // regexp for roman numbers |
189 | 187 | $roman = 'M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})'; |
190 | 188 | $roman = ''; |