mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-23 15:56:55 +00:00
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:
parent
9584ae2016
commit
6964cb1ded
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue