r40045 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40044‎ | r40045 | r40046 >
Date:20:23, 26 August 2008
Author:raymond
Status:old
Tags:
Comment:
Fix for r40041. PHP strict notice. Thanks to Ialex
Modified paths:
  • /trunk/phase3/includes/diff/DifferenceEngine.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/diff/DifferenceEngine.php
@@ -738,7 +738,7 @@
739739 * API convenience.
740740 */
741741 function loadRevisionData() {
742 - global $wgLang;
 742+ global $wgLang, $wgUser;
743743 if ( $this->mRevisionsLoaded ) {
744744 return true;
745745 } else {
@@ -817,7 +817,7 @@
818818 // Add an "undo" link
819819 $newUndo = $this->mNewPage->escapeLocalUrl( 'action=edit&undoafter=' . $this->mOldid . '&undo=' . $this->mNewid);
820820 $htmlLink = htmlspecialchars( wfMsg( 'editundo' ) );
821 - $htmlTitle = linker::tooltip( 'undo' );
 821+ $htmlTitle = $wgUser->getSkin()->tooltip( 'undo' );
822822 if( $editable && !$this->mOldRev->isDeleted( Revision::DELETED_TEXT ) && !$this->mNewRev->isDeleted( Revision::DELETED_TEXT ) ) {
823823 $this->mNewtitle .= " (<a href='$newUndo' $htmlTitle>" . $htmlLink . "</a>)";
824824 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r40041* Add tooltips to rollback and undo links...raymond20:06, 26 August 2008

Status & tagging log