Fix for r40041. PHP strict notice. Thanks to Ialex
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 26 Aug 2008 20:23:53 +0000 (20:23 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 26 Aug 2008 20:23:53 +0000 (20:23 +0000)
includes/diff/DifferenceEngine.php

index 58554fd..b75aeaa 100644 (file)
@@ -738,7 +738,7 @@ CONTROL;
         * API convenience.
         */
        function loadRevisionData() {
-               global $wgLang;
+               global $wgLang, $wgUser;
                if ( $this->mRevisionsLoaded ) {
                        return true;
                } else {
@@ -817,7 +817,7 @@ CONTROL;
                        // Add an "undo" link
                        $newUndo = $this->mNewPage->escapeLocalUrl( 'action=edit&undoafter=' . $this->mOldid . '&undo=' . $this->mNewid);
                        $htmlLink = htmlspecialchars( wfMsg( 'editundo' ) );
-                       $htmlTitle = linker::tooltip( 'undo' );
+                       $htmlTitle = $wgUser->getSkin()->tooltip( 'undo' );
                        if( $editable && !$this->mOldRev->isDeleted( Revision::DELETED_TEXT ) && !$this->mNewRev->isDeleted( Revision::DELETED_TEXT ) ) {
                                $this->mNewtitle .= " (<a href='$newUndo' $htmlTitle>" . $htmlLink . "</a>)";
                        }