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:
Catrope 2012-05-09 21:02:10 -07:00
parent c9c0aa6fce
commit 14e8d5d714

View file

@ -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';