Don't throw a fatal error if somebody access Special:Whatlinkshere without target...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 19 Apr 2008 18:45:42 +0000 (18:45 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 19 Apr 2008 18:45:42 +0000 (18:45 +0000)
includes/SpecialWhatlinkshere.php

index 0fd7c8f..f1962f0 100644 (file)
@@ -320,7 +320,7 @@ class WhatLinksHerePage {
                // Reset these for new requests
                $this->opts->consumeValues( array( 'back', 'from' ) );
 
-               $target = $this->target->getPrefixedText();
+               $target = $this->target ? $this->target->getPrefixedText() : '';
                $namespace = $this->opts->consumeValue( 'namespace' );
 
                # Build up the form