Make it possible to prefix the line by hooks
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 7 Apr 2008 16:48:51 +0000 (16:48 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 7 Apr 2008 16:48:51 +0000 (16:48 +0000)
includes/PageHistory.php

index 1c39955..b6edcaa 100644 (file)
@@ -209,7 +209,7 @@ class PageHistory {
                $rev = new Revision( $row );
                $rev->setTitle( $this->mTitle );
 
-               $s = '<li>';
+               $s = '';
                $curlink = $this->curLink( $rev, $latest );
                $lastlink = $this->lastLink( $rev, $next, $counter );
                $arbitrary = $this->diffButtons( $rev, $firstInList, $counter );
@@ -288,10 +288,8 @@ class PageHistory {
                }
                
                wfRunHooks( 'PageHistoryLineEnding', array( &$row , &$s ) );
-               
-               $s .= "</li>\n";
 
-               return $s;
+               return "<li>$s</li>\n";
        }
        
        /**