mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-12 01:11:55 +00:00
Use EditFilterMerged instead of EditFilter
The former is guaranteed to operate on the full wikitext. There should probably never be sections in a Lua page anyway, but I'm paranoid Change-Id: I0e19e60029a20112f42ebd087afd6a90fe210b3d
This commit is contained in:
parent
c9c0aa6fce
commit
14e8d5d714
|
@ -50,7 +50,7 @@ $wgHooks['CanonicalNamespaces'][] = 'ScribuntoHooks::addCanonicalNamespaces';
|
|||
$wgHooks['ArticleViewCustom'][] = 'ScribuntoHooks::handleScriptView';
|
||||
$wgHooks['TitleIsWikitextPage'][] = 'ScribuntoHooks::isWikitextPage';
|
||||
$wgHooks['CodeEditorGetPageLanguage'][] = 'ScribuntoHooks::getCodeLanguage';
|
||||
$wgHooks['EditFilter'][] = 'ScribuntoHooks::validateScript';
|
||||
$wgHooks['EditFilterMerged'][] = 'ScribuntoHooks::validateScript';
|
||||
|
||||
$wgHooks['UnitTestsList'][] = 'ScribuntoHooks::unitTestsList';
|
||||
|
||||
|
|
Loading…
Reference in a new issue