* Code conventions - spacing, minor refactoring
authorRob Church <robchurch@users.mediawiki.org>
Fri, 6 Jul 2007 22:58:29 +0000 (22:58 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Fri, 6 Jul 2007 22:58:29 +0000 (22:58 +0000)
* Correct errant release note

RELEASE-NOTES
includes/PageHistory.php

index 399355e..9e80cea 100644 (file)
@@ -122,8 +122,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 10438) HTML TeX formulas should not wrap
 * Introduce "raw editing" mode for the watchlist, to allow bulk additions,
   removals, and convenient exporting of watchlist contents
-* Put an (undo) button on the page history page, for people with rollback
-  permission only
+* Show "undo" links in page histories
 * Option to jump to specified time period in user contributions
 
 == Bugfixes since 1.10 ==
index a89b75b..2b57d66 100644 (file)
@@ -248,12 +248,13 @@ class PageHistory {
                        $s .= ' '.$this->mSkin->generateRollback( $rev );
                }
 
-               if ( !is_null($next)) {
+               if ( !is_null( $next ) ) {
                        $undolink = $this->mSkin->makeKnownLinkObj(
-                               $this->mTitle, '('.htmlspecialchars( wfMsg( 'editundo' ) ).')',
-                               'action=edit&undoafter=' . $next->rev_id . '&undo=' . $rev->getId(),
-                               '', '', '', null );
-                       $s .= ' <span class="mw-history-undo"> '."$undolink </span>";
+                               $this->mTitle,
+                               '(' . wfMsgHtml( 'editundo' ) . ')',
+                               'action=edit&undoafter=' . $next->rev_id . '&undo=' . $rev->getId()
+                       );
+                       $s .= " <span class=\"mw-history-undo\">{$undolink}</span>";
                }
                
                wfRunHooks( 'PageHistoryLineEnding', array( &$row , &$s ) );