dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add CollationFa
[lhc/web/wiklou.git]
/
includes
/
htmlform
/
HTMLSelectNamespace.php
diff --git
a/includes/htmlform/HTMLSelectNamespace.php
b/includes/htmlform/HTMLSelectNamespace.php
index
4efdfbf
..
ef21969
100644
(file)
--- a/
includes/htmlform/HTMLSelectNamespace.php
+++ b/
includes/htmlform/HTMLSelectNamespace.php
@@
-5,28
+5,32
@@
class HTMLSelectNamespace extends HTMLFormField {
public function __construct( $params ) {
parent::__construct( $params );
class HTMLSelectNamespace extends HTMLFormField {
public function __construct( $params ) {
parent::__construct( $params );
- $this->mAllValue = isset( $this->mParams['all'] ) ? $this->mParams['all'] : 'all';
+
+ $this->mAllValue = array_key_exists( 'all', $params )
+ ? $params['all']
+ : 'all';
+
}
function getInputHTML( $value ) {
return Html::namespaceSelector(
}
function getInputHTML( $value ) {
return Html::namespaceSelector(
- array(
+ [
'selected' => $value,
'all' => $this->mAllValue
'selected' => $value,
'all' => $this->mAllValue
- ), array(
+ ], [
'name' => $this->mName,
'id' => $this->mID,
'class' => 'namespaceselector',
'name' => $this->mName,
'id' => $this->mID,
'class' => 'namespaceselector',
- )
+ ]
);
}
public function getInputOOUI( $value ) {
);
}
public function getInputOOUI( $value ) {
- return new MediaWiki\Widget\NamespaceInputWidget(
array(
+ return new MediaWiki\Widget\NamespaceInputWidget(
[
'value' => $value,
'name' => $this->mName,
'id' => $this->mID,
'includeAllValue' => $this->mAllValue,
'value' => $value,
'name' => $this->mName,
'id' => $this->mID,
'includeAllValue' => $this->mAllValue,
-
)
);
+
]
);
}
}
}
}