A few comment tag tweaks.
[lhc/web/wiklou.git] / includes / PageHistory.php
index 2b57d66..7e7c541 100644 (file)
@@ -244,19 +244,26 @@ class PageHistory {
                if( $row->rev_deleted & Revision::DELETED_TEXT ) {
                        $s .= ' ' . wfMsgHtml( 'deletedrev' );
                }
+               
+               $tools = array();
+               
                if( $wgUser->isAllowed( 'rollback' ) && $latest ) {
-                       $s .= ' '.$this->mSkin->generateRollback( $rev );
+                       $tools[] = '<span class="mw-rollback-link">'
+                               . $this->mSkin->buildRollbackLink( $rev )
+                               . '</span>';
                }
-
+                       
                if ( !is_null( $next ) ) {
                        $undolink = $this->mSkin->makeKnownLinkObj(
                                $this->mTitle,
-                               '(' . wfMsgHtml( 'editundo' ) . ')',
+                               wfMsgHtml( 'editundo' ),
                                'action=edit&undoafter=' . $next->rev_id . '&undo=' . $rev->getId()
                        );
-                       $s .= " <span class=\"mw-history-undo\">{$undolink}</span>";
+                       $tools[] = "<span class=\"mw-history-undo\">{$undolink}</span>";
                }
                
+               $s .= ' (' . implode( ' | ', $tools ) . ')';
+               
                wfRunHooks( 'PageHistoryLineEnding', array( &$row , &$s ) );
                
                $s .= "</li>\n";
@@ -599,3 +606,4 @@ class PageHistoryPager extends ReverseChronologicalPager {
 }
 
 
+