Don't throw an exception when you save a module page

Fix for 14e8d5d: EditFilter has a $section parameter, EditFilterMerged
doesn't. So if you try to just change the hook without changing the hook
function definition, you get "expected reference, value given" for
parameter 4, which is escalated to an exception.

Change-Id: Ibedff799472285802c43feff6f3cb078e9bfb73c
This commit is contained in:
Tim Starling 2012-05-23 14:32:25 +10:00 committed by Catrope
parent 9584ae2016
commit 6964cb1ded

View file

@ -219,7 +219,7 @@ class ScribuntoHooks {
return true;
}
public static function validateScript( $editor, $text, $section, &$error ) {
public static function validateScript( $editor, $text, &$error, $summary ) {
global $wgUser, $wgOut, $wgScribuntoUseCodeEditor;
$title = $editor->mTitle;