Fix fatal error from r78264
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 12 Dec 2010 20:45:32 +0000 (20:45 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 12 Dec 2010 20:45:32 +0000 (20:45 +0000)
includes/diff/DifferenceEngine.php

index ff2d247..83318dd 100644 (file)
@@ -1006,7 +1006,7 @@ CONTROL;
                                'undo' => $this->mNewid
                        ) );
                        $htmlLink = htmlspecialchars( wfMsg( 'editundo' ) );
-                       $htmlTitle = Xml::expandAttributes( array( 'title' => $skin->titleAttrib( 'undo' ) ) );
+                       $htmlTitle = Xml::expandAttributes( array( 'title' => $wgUser->getSkin()->titleAttrib( 'undo' ) ) );
                        if ( $editable && !$this->mOldRev->isDeleted( Revision::DELETED_TEXT ) && !$this->mNewRev->isDeleted( Revision::DELETED_TEXT ) ) {
                                $this->mNewtitle .= " (<a href='$newUndo' $htmlTitle>" . $htmlLink . "</a>)";
                        }