Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -617,38 +617,38 @@ |
618 | 618 | return true; |
619 | 619 | } |
620 | 620 | |
621 | | - public static function extraLinksUpdate( &$linkUpdate ) { |
| 621 | + public static function extraLinksUpdate( &$linksUpdate ) { |
622 | 622 | $fname = 'FlaggedRevs::extraLinksUpdate'; |
623 | 623 | wfProfileIn( $fname ); |
624 | 624 | |
625 | | - if( !$linkUpdate->mTitle->isContentPage() ) |
| 625 | + if( !$linksUpdate->mTitle->isContentPage() ) |
626 | 626 | return true; |
627 | 627 | # Check if this page has a stable version |
628 | | - $sv = self::getOverridingPageRev( $linkUpdate->mTitle ); |
| 628 | + $sv = self::getOverridingPageRev( $linksUpdate->mTitle ); |
629 | 629 | if( !$sv ) |
630 | 630 | return true; |
631 | 631 | # Retrieve the text |
632 | 632 | $text = self::getFlaggedRevText( $sv->fr_rev_id ); |
633 | 633 | # Parse the revision |
634 | 634 | $options = new ParserOptions; |
635 | | - $parserOutput = self::parseStableText( $linkUpdate->mTitle, $text, $sv->fr_rev_id, $options ); |
| 635 | + $parserOutput = self::parseStableText( $linksUpdate->mTitle, $text, $sv->fr_rev_id, $options ); |
636 | 636 | # Might as well update the cache while we're at it |
637 | | - $article = new Article( $linkUpdate->mTitle ); |
| 637 | + $article = new Article( $linksUpdate->mTitle ); |
638 | 638 | FlaggedRevs::updatePageCache( $article, $parserOutput ); |
639 | 639 | # Update the links tables to include these |
640 | 640 | # We want the UNION of links between the current |
641 | 641 | # and stable version. Therefore, we only care about |
642 | 642 | # links that are in the stable version and not the regular one. |
643 | | - $linkUpdate->mLinks += $parserOutput->getLinks(); |
644 | | - $linkUpdate->mImages += $parserOutput->getImages(); |
645 | | - $linkUpdate->mTemplates += $parserOutput->getTemplates(); |
646 | | - $linkUpdate->mExternals += $parserOutput->getExternalLinks(); |
647 | | - $linkUpdate->mCategories += $parserOutput->getCategories(); |
| 643 | + $linksUpdate->mLinks += $parserOutput->getLinks(); |
| 644 | + $linksUpdate->mImages += $parserOutput->getImages(); |
| 645 | + $linksUpdate->mTemplates += $parserOutput->getTemplates(); |
| 646 | + $linksUpdate->mExternals += $parserOutput->getExternalLinks(); |
| 647 | + $linksUpdate->mCategories += $parserOutput->getCategories(); |
648 | 648 | # Interlanguage links |
649 | 649 | $ill = $parserOutput->getLanguageLinks(); |
650 | 650 | foreach( $ill as $link ) { |
651 | 651 | list( $key, $title ) = explode( ':', $link, 2 ); |
652 | | - $linkUpdate->mInterlangs[$key] = $title; |
| 652 | + $linksUpdate->mInterlangs[$key] = $title; |
653 | 653 | } |
654 | 654 | |
655 | 655 | wfProfileOut( $fname ); |