Author: bacher
Description:
If you use the ArticleSave hook like follows:
extensions/test.php
<code>
<?php
$wgHooks['ArticleSave'][] = 'test'; // validates the truth of an inline query
function test($text,$user,$text,$summary,$flags, $null, $null2, &$realFlag){
return 'fubar';
}
</code>
with the LocalSettings.php enhanced with
include('extensions/test.php');
this hook normally prevents that a page will be saved. it will redirect you to the edit page of the article, and
show up the message 'fubar'. Just try with Sandbox, it should not let you save any page.
But this does not occur if you are triing to save a page that formerly did not exists. On pressing the save button the ArticleSave Hook is triggered in doEdit, but the message that was returned will not show up. Not even the edit form will show up, it will just view a blank not existing Wiki Page that you may edit again then.
I only tested it with MW 1.11
Version: 1.11.x
Severity: normal