Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/247871
Change subject: Only allow the Campaign content model to be used in NS_CAMPAIGN
......................................................................
Only allow the Campaign content model to be used in NS_CAMPAIGN
Change-Id: I68e7bc6d2848e6ba92c292f779900aa97c33d0cd
---
M includes/CampaignContentHandler.php
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard
refs/changes/71/247871/1
diff --git a/includes/CampaignContentHandler.php
b/includes/CampaignContentHandler.php
index 2097e55..6299ccd 100644
--- a/includes/CampaignContentHandler.php
+++ b/includes/CampaignContentHandler.php
@@ -16,6 +16,10 @@
parent::__construct( $modelId );
}
+ public function canBeUsedOn ( Title $title ) {
+ return $title->inNamespace( NS_CAMPAIGN );
+ }
+
protected function getContentClass() {
return 'CampaignContent';
}
--
To view, visit https://gerrit.wikimedia.org/r/247871
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I68e7bc6d2848e6ba92c292f779900aa97c33d0cd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits