Status::getHTML should actually return HTML
[lhc/web/wiklou.git] / includes / Message.php
index 57c6264..1b36193 100644 (file)
@@ -841,7 +841,7 @@ class Message {
         */
        protected function parseText( $string ) {
                $out = MessageCache::singleton()->parse( $string, $this->title, /*linestart*/true, $this->interface, $this->language );
-               return is_object( $out ) ? $out->getText() : $out;
+               return $out instanceof ParserOutput ? $out->getText() : $out;
        }
 
        /**