mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Remove unused ContentHandlerDefaultModelFor hook
This was supposed to be removed in 7f02824ec4
except it got missed
somehow...
There was nothing registering it in extension.json, so it was entirely
unused.
Change-Id: I991c464ef0b60543a0ecd4cb1f9dda62e9d73dd4
This commit is contained in:
parent
990ce5b345
commit
04f2027d77
|
@ -195,26 +195,6 @@ class VisualEditorHooks {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the content model of a message that is actually JSON to JSON.
|
||||
* This only affects validation and UI when saving and editing, not
|
||||
* loading the content.
|
||||
*
|
||||
* @param Title $title
|
||||
* @param string $model
|
||||
* @return bool
|
||||
*/
|
||||
public static function onContentHandlerDefaultModelFor( Title $title, &$model ) {
|
||||
if (
|
||||
$title->inNamespace( NS_MEDIAWIKI ) &&
|
||||
$title->getText() === 'Visualeditor-quick-access-characters.json'
|
||||
) {
|
||||
$model = CONTENT_MODEL_JSON;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Changes the Edit tab and adds the VisualEditor tab.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue