mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-30 11:06:55 +00:00
Merge "Stay on mode=categories after the first submit with all namespaces"
This commit is contained in:
commit
bcdc686cac
|
@ -111,9 +111,9 @@ class CategoryTreePage extends SpecialPage {
|
|||
* Input form for entering a category
|
||||
*/
|
||||
private function executeInputForm() {
|
||||
$namespaces = $this->getRequest()->getRawVal( 'namespaces' );
|
||||
$namespaces = $this->getRequest()->getRawVal( 'namespaces' ) ?? '';
|
||||
// mode may be overriden by namespaces option
|
||||
$mode = ( $namespaces === null ? $this->getOption( 'mode' ) : CategoryTreeMode::ALL );
|
||||
$mode = ( $namespaces === '' ? $this->getOption( 'mode' ) : CategoryTreeMode::ALL );
|
||||
if ( $mode === CategoryTreeMode::CATEGORIES ) {
|
||||
$modeDefault = 'categories';
|
||||
} elseif ( $mode === CategoryTreeMode::PAGES ) {
|
||||
|
|
Loading…
Reference in a new issue