From bac1a94e8bd51c716536fab86d2bf6ffe46121a4 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Wed, 15 Aug 2007 20:46:51 +0000 Subject: [PATCH] Coerce mOutputHooks to an array; makes things backwards-compatible with old cached ParserOutput objects --- includes/ParserOutput.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.20.1