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
Merge "objectcache: Move WANObjectCache holdoff from get() to purge value"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialRandomInCategory.php
diff --git
a/includes/specials/SpecialRandomInCategory.php
b/includes/specials/SpecialRandomInCategory.php
index
e21eaeb
..
7cf6b0a
100644
(file)
--- a/
includes/specials/SpecialRandomInCategory.php
+++ b/
includes/specials/SpecialRandomInCategory.php
@@
-70,15
+70,15
@@
class SpecialRandomInCategory extends FormSpecialPage {
protected function getFormFields() {
$this->addHelpLink( 'Help:RandomInCategory' );
protected function getFormFields() {
$this->addHelpLink( 'Help:RandomInCategory' );
-
$form =
array(
+
return
array(
'category' => array(
'category' => array(
- 'type' => 'text',
+ 'type' => 'title',
+ 'namespace' => NS_CATEGORY,
+ 'relative' => true,
'label-message' => 'randomincategory-category',
'required' => true,
)
);
'label-message' => 'randomincategory-category',
'required' => true,
)
);
-
- return $form;
}
public function requiresWrite() {
}
public function requiresWrite() {
@@
-89,6
+89,10
@@
class SpecialRandomInCategory extends FormSpecialPage {
return false;
}
return false;
}
+ protected function getDisplayFormat() {
+ return 'ooui';
+ }
+
protected function alterForm( HTMLForm $form ) {
$form->setSubmitTextMsg( 'randomincategory-submit' );
}
protected function alterForm( HTMLForm $form ) {
$form->setSubmitTextMsg( 'randomincategory-submit' );
}