Author: etherboot
Description:
I'm using the parser standalone to parse Wiki text to be stored into a string and then sent via AJAX to an iframe. The code is running in the context of a Mediawiki as an extension. I have found that the parser returns prematurely without generating any output when I call $wgOut->parse().
I have traced it to these lines in formatHeaders in Parser.php. When I comment these lines out, the parser works without returning prematurely.
if( !$this->mTitle->quickUserCan( 'edit' ) ) {
$showEditLink = 0;
} else {
$showEditLink = $this->mOptions->getEditSection();
}
Is there a problem with quickUserCan? Is mTitle not initialised properly when I use the parser standalone?
This did not happen in 1.12 so I think it is something new in 1.13.
Version: 1.13.x
Severity: major
OS: Linux
Platform: PC