Index: trunk/extensions/FlaggedRevs/presentation/FlaggedPageView.php |
— | — | @@ -1503,7 +1503,6 @@ |
1504 | 1504 | protected static function diffToStableLink( |
1505 | 1505 | FlaggedPage $article, $oldRev, Revision $newRev |
1506 | 1506 | ) { |
1507 | | - $reqUser = $this->getUser(); |
1508 | 1507 | $srev = $article->getStableRev(); |
1509 | 1508 | if ( !$srev ) { |
1510 | 1509 | return ''; // nothing to do |
— | — | @@ -1515,7 +1514,7 @@ |
1516 | 1515 | # Make a link to the full diff-to-stable if: |
1517 | 1516 | # (a) Actual revs are pending and (b) We are not viewing the full diff-to-stable |
1518 | 1517 | if ( $article->revsArePending() && !$fullStableDiff ) { |
1519 | | - $review = $reqUser->getSkin()->linkKnown( |
| 1518 | + $review = Linker::linkKnown( |
1520 | 1519 | $article->getTitle(), |
1521 | 1520 | wfMsgHtml( 'review-diff2stable' ), |
1522 | 1521 | array(), |
— | — | @@ -1578,8 +1577,6 @@ |
1579 | 1578 | // Fetch template changes for a reviewed revision since review |
1580 | 1579 | // @return array |
1581 | 1580 | protected static function fetchTemplateChanges( FlaggedRevision $frev, $newTemplates = null ) { |
1582 | | - $reqUser = $this->getUser(); |
1583 | | - $skin = $reqUser->getSkin(); |
1584 | 1581 | $diffLinks = array(); |
1585 | 1582 | if ( $newTemplates === null ) { |
1586 | 1583 | $changes = $frev->findPendingTemplateChanges(); |
— | — | @@ -1588,7 +1585,7 @@ |
1589 | 1586 | } |
1590 | 1587 | foreach ( $changes as $tuple ) { |
1591 | 1588 | list( $title, $revIdStable, $hasStable ) = $tuple; |
1592 | | - $link = $skin->linkKnown( |
| 1589 | + $link = Linker::linkKnown( |
1593 | 1590 | $title, |
1594 | 1591 | htmlspecialchars( $title->getPrefixedText() ), |
1595 | 1592 | array(), |
— | — | @@ -1604,8 +1601,6 @@ |
1605 | 1602 | // Fetch file changes for a reviewed revision since review |
1606 | 1603 | // @return array |
1607 | 1604 | protected static function fetchFileChanges( FlaggedRevision $frev, $newFiles = null ) { |
1608 | | - $reqUser = $this->getUser(); |
1609 | | - $skin = $reqUser->getSkin(); |
1610 | 1605 | $diffLinks = array(); |
1611 | 1606 | if ( $newFiles === null ) { |
1612 | 1607 | $changes = $frev->findPendingFileChanges( 'noForeign' ); |
— | — | @@ -1615,7 +1610,7 @@ |
1616 | 1611 | foreach ( $changes as $tuple ) { |
1617 | 1612 | list( $title, $revIdStable, $hasStable ) = $tuple; |
1618 | 1613 | // @TODO: change when MW has file diffs |
1619 | | - $link = $skin->link( $title, htmlspecialchars( $title->getPrefixedText() ) ); |
| 1614 | + $link = Linker::link( $title, htmlspecialchars( $title->getPrefixedText() ) ); |
1620 | 1615 | if ( !$hasStable ) { |
1621 | 1616 | $link = "<strong>$link</strong>"; |
1622 | 1617 | } |