From: Tim Starling Date: Sun, 17 Jul 2005 02:14:58 +0000 (+0000) Subject: fixed incorrect use of text->boolean conversion X-Git-Tag: 1.5.0beta4~112 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=fcc4b040f040e46f398a3743e2d0478128c3237e;p=lhc%2Fweb%2Fwiklou.git fixed incorrect use of text->boolean conversion --- diff --git a/includes/Parser.php b/includes/Parser.php index f6849fdc44..48f512308d 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2217,7 +2217,7 @@ class Parser if ( $title->getNamespace() == NS_SPECIAL && $this->mOptions->getAllowSpecialInclusion() ) { # Capture special page output $text = SpecialPage::capturePath( $title ); - if ( $text && !is_object( $text ) ) { + if ( is_string( $text ) ) { $found = true; $noparse = true; $isHTML = true;