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
UploadBase: Formally deprecate old methods for stashing files
[lhc/web/wiklou.git]
/
includes
/
widget
/
ComplexTitleInputWidget.php
diff --git
a/includes/widget/ComplexTitleInputWidget.php
b/includes/widget/ComplexTitleInputWidget.php
index
ea0ef9e
..
a9e8042
100644
(file)
--- a/
includes/widget/ComplexTitleInputWidget.php
+++ b/
includes/widget/ComplexTitleInputWidget.php
@@
-23,13
+23,13
@@
class ComplexTitleInputWidget extends \OOUI\Widget {
* with list of namespaces
* @param array $config['title'] Configuration for the TitleInputWidget text field
*/
* with list of namespaces
* @param array $config['title'] Configuration for the TitleInputWidget text field
*/
- public function __construct( array $config =
array()
) {
+ public function __construct( array $config =
[]
) {
// Configuration initialization
$config = array_merge(
// Configuration initialization
$config = array_merge(
- array(
- 'namespace' =>
array()
,
- 'title' =>
array()
,
-
)
,
+ [
+ 'namespace' =>
[]
,
+ 'title' =>
[]
,
+
]
,
$config
);
$config
);
@@
-41,20
+41,17
@@
class ComplexTitleInputWidget extends \OOUI\Widget {
$this->namespace = new NamespaceInputWidget( $config['namespace'] );
$this->title = new TitleInputWidget( array_merge(
$config['title'],
$this->namespace = new NamespaceInputWidget( $config['namespace'] );
$this->title = new TitleInputWidget( array_merge(
$config['title'],
- array(
- // The inner TitleInputWidget shouldn't be infusable,
- // only the ComplexTitleInputWidget itself can be.
- 'infusable' => false,
+ [
'relative' => true,
'namespace' => isset( $config['namespace']['value'] ) ?
$config['namespace']['value'] :
null,
'relative' => true,
'namespace' => isset( $config['namespace']['value'] ) ?
$config['namespace']['value'] :
null,
- )
+ ]
) );
// Initialization
$this
) );
// Initialization
$this
- ->addClasses(
array( 'mw-widget-complexTitleInputWidget' )
)
+ ->addClasses(
[ 'mw-widget-complexTitleInputWidget' ]
)
->appendContent( $this->namespace, $this->title );
}
->appendContent( $this->namespace, $this->title );
}