Restored missing submit button
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 7 Jul 2006 15:20:44 +0000 (15:20 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 7 Jul 2006 15:20:44 +0000 (15:20 +0000)
includes/PageHistory.php

index 19be033..1389481 100644 (file)
@@ -107,6 +107,7 @@ class PageHistory {
                 */
                $pager = new PageHistoryPager( $this );
                $navbar = $pager->getNavigationBar();
+               $this->linesonpage = $pager->getNumRows();
                $wgOut->addHTML(
                        $pager->getNavigationBar() . 
                        $this->beginHistoryList() . 
@@ -520,7 +521,6 @@ class PageHistoryPager extends ReverseChronologicalPager {
        function getStartBody() {
                $this->mLastRow = false;
                $this->mCounter = 1;
-               $this->mPageHistory->linesonpage = $this->getNumRows();
                return '';
        }