From ca32f08966f1b51fcb19460f0996bb0c4048e6fe Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 3 Dec 2011 13:29:22 +0100 Subject: Update to MediaWiki 1.18.0 * also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing --- includes/HistoryPage.php | 50 +++++++++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 20 deletions(-) (limited to 'includes/HistoryPage.php') diff --git a/includes/HistoryPage.php b/includes/HistoryPage.php index b2cf044a..dd5ecd43 100644 --- a/includes/HistoryPage.php +++ b/includes/HistoryPage.php @@ -326,6 +326,10 @@ class HistoryPager extends ReverseChronologicalPager { return $this->historyPage->getArticle(); } + function getTitle() { + return $this->title; + } + function getSqlComment() { if ( $this->conds ) { return 'history page filtered'; // potentially slow, see CR r58153 @@ -339,7 +343,7 @@ class HistoryPager extends ReverseChronologicalPager { 'tables' => array( 'revision' ), 'fields' => Revision::selectFields(), 'conds' => array_merge( - array( 'rev_page' => $this->historyPage->getTitle()->getArticleID() ), + array( 'rev_page' => $this->title->getArticleID() ), $this->conds ), 'options' => array( 'USE INDEX' => array( 'revision' => 'page_timestamp' ) ), 'join_conds' => array( 'tag_summary' => array( 'LEFT JOIN', 'ts_rev_id=rev_id' ) ), @@ -380,7 +384,7 @@ class HistoryPager extends ReverseChronologicalPager { * @return string HTML output */ function getStartBody() { - global $wgScript, $wgUser, $wgOut, $wgContLang; + global $wgScript, $wgUser, $wgOut; $this->lastRow = false; $this->counter = 1; $this->oldIdChecked = 0; @@ -397,31 +401,33 @@ class HistoryPager extends ReverseChronologicalPager { $this->buttons = '
'; $this->buttons .= $this->submitButton( wfMsg( 'compareselectedversions' ), array( 'class' => 'historysubmit' ) - + $wgUser->getSkin()->tooltipAndAccessKeyAttribs( 'compareselectedversions' ) + + Linker::tooltipAndAccesskeyAttribs( 'compareselectedversions' ) ) . "\n"; if ( $wgUser->isAllowed( 'deleterevision' ) ) { - $this->preventClickjacking(); - $float = $wgContLang->alignEnd(); - # Note bug #20966,
'; $s .= '