Cboltz has uploaded a new change for review.
https://gerrit.wikimedia.org/r/51878
Change subject: [Bug 23106] fix $wgSelectCategoryEnableSubpages
......................................................................
[Bug 23106] fix $wgSelectCategoryEnableSubpages
Patch by Martin Michlmayr
Change-Id: I6cdb7acc08198598119fd8f7c9fef6f74accfa71
---
M CHANGELOG
M SelectCategory_body.php
2 files changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SelectCategory
refs/changes/78/51878/1
diff --git a/CHANGELOG b/CHANGELOG
index 16f8b7c..6f9898c 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,6 @@
Changes since the last release:
- - [Bug 24439] - Categories are not saved when doing upload of files
+ - [Bug 23106] fix $wgSelectCategoryEnableSubpages
+ - [Bug 24439] Categories are not saved when doing upload of files
- [Bug 38374] option to disallow selecting the top-level category
(new config option $wgSelectCategoryToplevelAllowed)
- [Bug 24911] $wgSelectCategoryRoot ignored on Special:Upload
diff --git a/SelectCategory_body.php b/SelectCategory_body.php
index c86f77f..cebe3e3 100644
--- a/SelectCategory_body.php
+++ b/SelectCategory_body.php
@@ -327,7 +327,7 @@
if ($enabledForNamespace
&& (!$isSubpage
- || $isSubpage && $wgSelectCategoryEnableSubpage)
+ || $isSubpage &&
$wgSelectCategoryEnableSubpages)
&& $pageObj->section == false) {
return true;
}
--
To view, visit https://gerrit.wikimedia.org/r/51878
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6cdb7acc08198598119fd8f7c9fef6f74accfa71
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SelectCategory
Gerrit-Branch: master
Gerrit-Owner: Cboltz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits