fixed incorrect use of text->boolean conversion
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 17 Jul 2005 02:14:58 +0000 (02:14 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 17 Jul 2005 02:14:58 +0000 (02:14 +0000)
includes/Parser.php

index f6849fd..48f5123 100644 (file)
@@ -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;