I have written a parser hook that adds a new tag to the markup, which in certain
situations redirects to the error page, using $wgOut->errorpage().
When this happens, I get the following error (which did not occur in 1.5.8, but
occurs in 1.9.3 and HEAD):
Fatal error: Call to a member function isCurrent() on a non-object in
includes\Skin.php on line 1259
The offending line is:
if( $this->mRevisionId && ! $wgArticle->isCurrent() ) {
and this causes an error because $wgArticle is not defined at this stage (it
contains NULL).
It can be fixed by adding a check that $wgArticle is defined, which returns the
code to its original behaviour.
This bug was introduced in r11890.
Version: 1.10.x
Severity: normal