Index: trunk/phase3/includes/diff/DifferenceEngine.php |
— | — | @@ -738,7 +738,7 @@ |
739 | 739 | * API convenience. |
740 | 740 | */ |
741 | 741 | function loadRevisionData() { |
742 | | - global $wgLang; |
| 742 | + global $wgLang, $wgUser; |
743 | 743 | if ( $this->mRevisionsLoaded ) { |
744 | 744 | return true; |
745 | 745 | } else { |
— | — | @@ -817,7 +817,7 @@ |
818 | 818 | // Add an "undo" link |
819 | 819 | $newUndo = $this->mNewPage->escapeLocalUrl( 'action=edit&undoafter=' . $this->mOldid . '&undo=' . $this->mNewid); |
820 | 820 | $htmlLink = htmlspecialchars( wfMsg( 'editundo' ) ); |
821 | | - $htmlTitle = linker::tooltip( 'undo' ); |
| 821 | + $htmlTitle = $wgUser->getSkin()->tooltip( 'undo' ); |
822 | 822 | if( $editable && !$this->mOldRev->isDeleted( Revision::DELETED_TEXT ) && !$this->mNewRev->isDeleted( Revision::DELETED_TEXT ) ) { |
823 | 823 | $this->mNewtitle .= " (<a href='$newUndo' $htmlTitle>" . $htmlLink . "</a>)"; |
824 | 824 | } |