Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F584950
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/includes/htmlform/fields/HTMLSizeFilterField.php b/includes/htmlform/fields/HTMLSizeFilterField.php
index 954b57241e7..81799f5ae54 100644
--- a/includes/htmlform/fields/HTMLSizeFilterField.php
+++ b/includes/htmlform/fields/HTMLSizeFilterField.php
@@ -2,9 +2,9 @@
namespace MediaWiki\HTMLForm\Field;
+use MediaWiki\Html\Html;
use MediaWiki\Request\WebRequest;
use MediaWiki\Widget\SizeFilterWidget;
-use MediaWiki\Xml\Xml;
/**
* A size filter field for use on query-type special pages. It looks a bit like:
@@ -31,22 +31,26 @@ class HTMLSizeFilterField extends HTMLIntField {
$attribs['disabled'] = 'disabled';
}
- $html = Xml::radioLabel(
- $this->msg( 'minimum-size' )->text(),
+ $html = '';
+
+ $minId = $this->mID . '-mode-min';
+ $html .= Html::radio(
$this->mName . '-mode',
- 'min',
- $this->mID . '-mode-min',
$this->mSelectMin,
- $attribs
+ [ 'id' => $minId, 'value' => 'min' ] + $attribs
);
- $html .= "\u{00A0}" . Xml::radioLabel(
- $this->msg( 'maximum-size' )->text(),
+ $html .= "\u{00A0}" . Html::label( $this->msg( 'minimum-size' )->text(), $minId, $attribs );
+
+ $html .= "\u{00A0}";
+
+ $maxId = $this->mID . '-mode-max';
+ $html .= Html::radio(
$this->mName . '-mode',
- 'max',
- $this->mID . '-mode-max',
!$this->mSelectMin,
- $attribs
+ [ 'id' => $maxId, 'value' => 'max' ] + $attribs
);
+ $html .= "\u{00A0}" . Html::label( $this->msg( 'maximum-size' )->text(), $maxId, $attribs );
+
$html .= "\u{00A0}" . parent::getInputHTML( $value ? abs( $value ) : '' );
$html .= "\u{00A0}" . $this->msg( 'pagesize' )->parse();
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:31 AM (8 h, 59 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227428
Default Alt Text
(1 KB)
Attached To
Mode
rMW mediawiki
Attached
Detach File
Event Timeline
Log In to Comment