Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/247870

Change subject: Only allow the JsonSchema content model to be used in NS_SCHEMA
......................................................................

Only allow the JsonSchema content model to be used in NS_SCHEMA

Change-Id: I02ae4df331c09ef9ca25a777373b5f6aa70add8b
---
M includes/JsonSchemaContentHandler.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EventLogging 
refs/changes/70/247870/1

diff --git a/includes/JsonSchemaContentHandler.php 
b/includes/JsonSchemaContentHandler.php
index 25c6c84..04cfba4 100644
--- a/includes/JsonSchemaContentHandler.php
+++ b/includes/JsonSchemaContentHandler.php
@@ -15,6 +15,10 @@
                parent::__construct( $modelId, array( CONTENT_FORMAT_JSON ) );
        }
 
+       public function canBeUsedOn ( Title $title ) {
+               return $title->inNamespace( NS_SCHEMA );
+       }
+
        protected function getContentClass() {
                return 'JsonSchemaContent';
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/247870
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I02ae4df331c09ef9ca25a777373b5f6aa70add8b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EventLogging
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to