Hi @all...
the extension I actually create, tries to call a function by using the
ArticleSaveComplete-Hook:
function ArticleReturn(&$text) {
global $wgOut, $wgUser, $wgRequest, $wgTitle, $wgParser;
$articleText = $text->getContent();
$referer = $_SERVER['HTTP_REFERER'];
if (preg_match('/<section begin=/', $articleText)) {
header("Location: $referer");
} else {
return true;
}
}
Unfortunately it doesn't work.
However, if I use the ArticleSave-Hook in the same case it does.
But the changes done, aren't saved of cause.
Anybody who can tell me the problem?
greets, demagggus