From: Rob Church Date: Wed, 15 Aug 2007 20:46:51 +0000 (+0000) Subject: Coerce mOutputHooks to an array; makes things backwards-compatible with old cached... X-Git-Tag: 1.31.0-rc.0~51753 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=bac1a94e8bd51c716536fab86d2bf6ffe46121a4;p=lhc%2Fweb%2Fwiklou.git Coerce mOutputHooks to an array; makes things backwards-compatible with old cached ParserOutput objects --- diff --git a/includes/ParserOutput.php b/includes/ParserOutput.php index 8b9f659fb8..d4daf1d177 100644 --- a/includes/ParserOutput.php +++ b/includes/ParserOutput.php @@ -60,7 +60,7 @@ class ParserOutput function &getExternalLinks() { return $this->mExternalLinks; } function getNoGallery() { return $this->mNoGallery; } function getSubtitle() { return $this->mSubtitle; } - function getOutputHooks() { return $this->mOutputHooks; } + function getOutputHooks() { return (array)$this->mOutputHooks; } function containsOldMagic() { return $this->mContainsOldMagic; } function setText( $text ) { return wfSetVar( $this->mText, $text ); }