Legoktm has uploaded a new change for review.

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

Change subject: Remove no longer needed ContentHandlerDefaultModelFor hook
......................................................................

Remove no longer needed ContentHandlerDefaultModelFor hook

As of 3b44da3261673 in MediaWiki core, all MediaWiki:*.json pages are
given the JSON content model, so our hook that does the same is no
longer needed.

Change-Id: I308032918d322e1c9f8756a347e0bc26ed44d42c
---
M Citoid.hooks.php
M extension.json
2 files changed, 0 insertions(+), 11 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Citoid 
refs/changes/05/258705/1

diff --git a/Citoid.hooks.php b/Citoid.hooks.php
index 432e80b..b866941 100644
--- a/Citoid.hooks.php
+++ b/Citoid.hooks.php
@@ -21,14 +21,6 @@
                return true;
        }
 
-       public static function onContentHandlerDefaultModelFor( Title $title, 
&$model ) {
-               if ( $title->inNamespace( NS_MEDIAWIKI ) && $title->getText() 
=== 'Citoid-template-type-map.json' ) {
-                       $model = CONTENT_MODEL_JSON;
-               }
-
-               return true;
-       }
-
        /**
         * Register qunit unit tests
         */
diff --git a/extension.json b/extension.json
index 1749181..70ff3c4 100644
--- a/extension.json
+++ b/extension.json
@@ -79,9 +79,6 @@
                "ResourceLoaderGetConfigVars": [
                        "CitoidHooks::onResourceLoaderGetConfigVars"
                ],
-               "ContentHandlerDefaultModelFor": [
-                       "CitoidHooks::onContentHandlerDefaultModelFor"
-               ],
                "ResourceLoaderTestModules": [
                        "CitoidHooks::onResourceLoaderTestModules"
                ],

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I308032918d322e1c9f8756a347e0bc26ed44d42c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Citoid
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