From: Raimond Spekking Date: Tue, 26 Aug 2008 20:23:53 +0000 (+0000) Subject: Fix for r40041. PHP strict notice. Thanks to Ialex X-Git-Tag: 1.31.0-rc.0~45643 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=b4e72cf1415d9ae9f29fca00d2d8f826591c5914;p=lhc%2Fweb%2Fwiklou.git Fix for r40041. PHP strict notice. Thanks to Ialex --- diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index 58554fd074..b75aeaad49 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -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 .= " (" . $htmlLink . ")"; }