From c1f9b1f7b1b77776192048005dcc66dcf3df2bfb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 27 Dec 2014 15:41:37 +0100 Subject: Update to MediaWiki 1.24.1 --- includes/htmlform/HTMLSelectLimitField.php | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 includes/htmlform/HTMLSelectLimitField.php (limited to 'includes/htmlform/HTMLSelectLimitField.php') diff --git a/includes/htmlform/HTMLSelectLimitField.php b/includes/htmlform/HTMLSelectLimitField.php new file mode 100644 index 00000000..e7f1c047 --- /dev/null +++ b/includes/htmlform/HTMLSelectLimitField.php @@ -0,0 +1,35 @@ +mParams['options'] ) + && $value == intval( $value ) + && $value > 0 + ) { + // This adds the explicitly requested limit value to the drop-down, + // then makes sure it's sorted correctly so when we output the list + // later, the custom option doesn't just show up last. + $this->mParams['options'][$this->mParent->getLanguage()->formatNum( $value )] = + intval( $value ); + asort( $this->mParams['options'] ); + } + + return true; + } +} -- cgit v1.2.3-54-g00ecf