From e4a9c89be0afc6936a50e2e1bf04231ac3710bb8 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 14 Dec 2010 18:17:42 +0000 Subject: [PATCH] Fixup fixme on r76844 Only "known issue", is the bottom limit thing posts, and won't override the top one, if it's set one in the URL, which is a PITA. 2 clicks does it. Hopefully this can be fixed, and uncommented when VVV sorts out our queryparameters? :) --- includes/Pager.php | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/includes/Pager.php b/includes/Pager.php index b6956e5309..bf613fdcdc 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -1047,20 +1047,26 @@ abstract class TablePager extends IndexPager { function getLimitForm() { global $wgScript; + return Xml::openElement( + 'form', + array( + 'method' => 'get', + 'action' => $wgScript + ) ) . "\n" . $this->getLimitDropdown() . "\n"; + } + + /** + * Gets a limit selection dropdown + * + * @return string + */ + function getLimitDropdown() { # Make the select with some explanatory text $msgSubmit = wfMsgHtml( 'table_pager_limit_submit' ); - return - Xml::openElement( - 'form', - array( - 'method' => 'get', - 'action' => $wgScript - ) - ) . "\n" . - wfMsgHtml( 'table_pager_limit', $this->getLimitSelect() ) . + + return wfMsgHtml( 'table_pager_limit', $this->getLimitSelect() ) . "\n\n" . - $this->getHiddenFields( array( 'limit' ) ) . - "\n"; + $this->getHiddenFields( array( 'limit' ) ); } /** -- 2.20.1