From: Tim Starling Date: Tue, 4 Jul 2006 09:13:10 +0000 (+0000) Subject: Call firstCallInit() before cloning $wgParser. X-Git-Tag: 1.31.0-rc.0~56421 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=6c83557757e9098b91527ed298f39a8f69753d02;p=lhc%2Fweb%2Fwiklou.git Call firstCallInit() before cloning $wgParser. --- diff --git a/includes/MessageCache.php b/includes/MessageCache.php index cebb86fb28..c8b7124cea 100644 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -524,6 +524,9 @@ class MessageCache { function transform( $message ) { global $wgParser; if ( !$this->mParser && isset( $wgParser ) ) { + # Do some initialisation so that we don't have to do it twice + $wgParser->firstCallInit(); + # Clone it and store it $this->mParser = clone $wgParser; } if ( !$this->mDisableTransform && $this->mParser ) {