Index: trunk/phase3/maintenance/tests/parser/parserTest.inc |
— | — | @@ -515,7 +515,6 @@ |
516 | 516 | |
517 | 517 | private function parseOptions( $instring ) { |
518 | 518 | $opts = array(); |
519 | | - $lines = explode( "\n", $instring ); |
520 | 519 | // foo |
521 | 520 | // foo=bar |
522 | 521 | // foo="bar baz" |
— | — | @@ -554,7 +553,7 @@ |
555 | 554 | |
556 | 555 | if ( preg_match_all( $regex, $instring, $matches, PREG_SET_ORDER ) ) { |
557 | 556 | foreach ( $matches as $bits ) { |
558 | | - $match = array_shift( $bits ); |
| 557 | + array_shift( $bits ); |
559 | 558 | $key = strtolower( array_shift( $bits ) ); |
560 | 559 | if ( count( $bits ) == 0 ) { |
561 | 560 | $opts[$key] = true; |
Index: trunk/phase3/skins/Vector.php |
— | — | @@ -680,7 +680,7 @@ |
681 | 681 | <div id="p-namespaces" class="vectorTabs<?php if ( count( $this->data['namespace_urls'] ) == 0 ) echo ' emptyPortlet'; ?>"> |
682 | 682 | <h5><?php $this->msg('namespaces') ?></h5> |
683 | 683 | <ul<?php $this->html('userlangattributes') ?>> |
684 | | - <?php foreach ($this->data['namespace_urls'] as $key => $link ): ?> |
| 684 | + <?php foreach ($this->data['namespace_urls'] as $link ): ?> |
685 | 685 | <li <?php echo $link['attributes'] ?>><span><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo htmlspecialchars( $link['text'] ) ?></a></span></li> |
686 | 686 | <?php endforeach; ?> |
687 | 687 | </ul> |
— | — | @@ -692,7 +692,7 @@ |
693 | 693 | <div id="p-variants" class="vectorMenu<?php if ( count( $this->data['variant_urls'] ) == 0 ) echo ' emptyPortlet'; ?>"> |
694 | 694 | <?php if ( $wgVectorShowVariantName ): ?> |
695 | 695 | <h4> |
696 | | - <?php foreach ( $this->data['variant_urls'] as $key => $link ): ?> |
| 696 | + <?php foreach ( $this->data['variant_urls'] as $link ): ?> |
697 | 697 | <?php if ( stripos( $link['attributes'], 'selected' ) !== false ): ?> |
698 | 698 | <?php echo htmlspecialchars( $link['text'] ) ?> |
699 | 699 | <?php endif; ?> |
— | — | @@ -702,7 +702,7 @@ |
703 | 703 | <h5><span><?php $this->msg('variants') ?></span><a href="#"></a></h5> |
704 | 704 | <div class="menu"> |
705 | 705 | <ul<?php $this->html('userlangattributes') ?>> |
706 | | - <?php foreach ( $this->data['variant_urls'] as $key => $link ): ?> |
| 706 | + <?php foreach ( $this->data['variant_urls'] as $link ): ?> |
707 | 707 | <li<?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo htmlspecialchars( $link['text'] ) ?></a></li> |
708 | 708 | <?php endforeach; ?> |
709 | 709 | </ul> |
Index: trunk/phase3/includes/User.php |
— | — | @@ -693,7 +693,6 @@ |
694 | 694 | } |
695 | 695 | |
696 | 696 | # Reject various classes of invalid names |
697 | | - $name = $t->getText(); |
698 | 697 | global $wgAuth; |
699 | 698 | $name = $wgAuth->getCanonicalName( $t->getText() ); |
700 | 699 | |
Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -425,13 +425,11 @@ |
426 | 426 | # Needs the sockets extension |
427 | 427 | if ( preg_match( '!^(tcp|udp):(?://)?\[([0-9a-fA-F:]+)\]:(\d+)(?:/(.*))?$!', $file, $m ) ) { |
428 | 428 | // IPv6 bracketed host |
429 | | - $protocol = $m[1]; |
430 | 429 | $host = $m[2]; |
431 | 430 | $port = intval( $m[3] ); |
432 | 431 | $prefix = isset( $m[4] ) ? $m[4] : false; |
433 | 432 | $domain = AF_INET6; |
434 | 433 | } elseif ( preg_match( '!^(tcp|udp):(?://)?([a-zA-Z0-9.-]+):(\d+)(?:/(.*))?$!', $file, $m ) ) { |
435 | | - $protocol = $m[1]; |
436 | 434 | $host = $m[2]; |
437 | 435 | if ( !IP::isIPv4( $host ) ) { |
438 | 436 | $host = gethostbyname( $host ); |
Index: trunk/phase3/includes/MessageCache.php |
— | — | @@ -634,7 +634,6 @@ |
635 | 635 | */ |
636 | 636 | function getMsgFromNamespace( $title, $code ) { |
637 | 637 | global $wgAdaptiveMessageCache; |
638 | | - $big = false; |
639 | 638 | |
640 | 639 | $this->load( $code ); |
641 | 640 | if ( isset( $this->mCache[$code][$title] ) ) { |
Index: trunk/phase3/includes/db/DatabaseIbm_db2.php |
— | — | @@ -607,7 +607,6 @@ |
608 | 608 | } else { |
609 | 609 | print '<li>Foreign keys done</li>'; |
610 | 610 | } |
611 | | - $res = null; |
612 | 611 | |
613 | 612 | // TODO: populate interwiki links |
614 | 613 | |
Index: trunk/phase3/includes/UserMailer.php |
— | — | @@ -471,13 +471,14 @@ |
472 | 472 | $keys['$CHANGEDORCREATED'] = wfMsgForContent( 'created' ); |
473 | 473 | } |
474 | 474 | |
475 | | - if ($wgEnotifImpersonal && $this->oldid) |
| 475 | + if ($wgEnotifImpersonal && $this->oldid) { |
476 | 476 | /* |
477 | 477 | * For impersonal mail, show a diff link to the last |
478 | 478 | * revision. |
479 | 479 | */ |
480 | 480 | $keys['$NEWPAGE'] = wfMsgForContent('enotif_lastdiff', |
481 | 481 | $this->title->getFullURL("oldid={$this->oldid}&diff=next")); |
| 482 | + } |
482 | 483 | |
483 | 484 | $body = strtr( $body, $keys ); |
484 | 485 | $pagetitle = $this->title->getPrefixedText(); |
Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -460,7 +460,6 @@ |
461 | 461 | if( count($paramArray) >= 1 ) { |
462 | 462 | $revdel = SpecialPage::getTitleFor( 'Revisiondelete' ); |
463 | 463 | // $paramArray[1] is a CSV of the IDs |
464 | | - $Ids = explode( ',', $paramArray[0] ); |
465 | 464 | $query = $paramArray[0]; |
466 | 465 | // Link to each hidden object ID, $paramArray[1] is the url param |
467 | 466 | $revert = '(' . $this->skin->link( |
Index: trunk/phase3/includes/installer/Installer.php |
— | — | @@ -683,7 +683,7 @@ |
684 | 684 | } |
685 | 685 | |
686 | 686 | # Get a list of available locales. |
687 | | - $lines = $ret = false; |
| 687 | + $ret = false; |
688 | 688 | $lines = wfShellExec( '/usr/bin/locale -a', $ret ); |
689 | 689 | |
690 | 690 | if ( $ret ) { |
Index: trunk/phase3/includes/ConfEditor.php |
— | — | @@ -510,7 +510,6 @@ |
511 | 511 | $indent = false; |
512 | 512 | } |
513 | 513 | if ( $indent !== false && $arrowPos !== false ) { |
514 | | - $textToInsert = "$indent$key "; |
515 | 514 | $arrowIndentLength = $arrowPos - $pos - $indentLength - strlen( $key ); |
516 | 515 | if ( $arrowIndentLength > 0 ) { |
517 | 516 | $arrowIndent = str_repeat( ' ', $arrowIndentLength ); |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -531,17 +531,11 @@ |
532 | 532 | */ |
533 | 533 | function setupUserCss( OutputPage $out ) { |
534 | 534 | global $wgRequest; |
535 | | - global $wgUseSiteCss, $wgAllowUserCss, $wgAllowUserCssPrefs, $wgSquidMaxage; |
| 535 | + global $wgUseSiteCss, $wgAllowUserCss, $wgAllowUserCssPrefs; |
536 | 536 | |
537 | 537 | wfProfileIn( __METHOD__ ); |
538 | 538 | |
539 | 539 | $this->setupSkinUserCss( $out ); |
540 | | - |
541 | | - $siteargs = array( |
542 | | - 'action' => 'raw', |
543 | | - 'maxage' => $wgSquidMaxage, |
544 | | - ); |
545 | | - |
546 | 540 | // Add any extension CSS |
547 | 541 | foreach ( $out->getExtStyle() as $url ) { |
548 | 542 | $out->addStyle( $url ); |