diff --git a/includes/cache/MessageCache.php b/includes/cache/MessageCache.php index a92c87f..b5292dc 100644 --- a/includes/cache/MessageCache.php +++ b/includes/cache/MessageCache.php @@ -991,17 +991,9 @@ class MessageCache { */ function getParser() { global $wgParser, $wgParserConf; - 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 + if ( !$this->mParser ) { $class = $wgParserConf['class']; - if ( $class == 'Parser_DiffTest' ) { - # Uncloneable - $this->mParser = new $class( $wgParserConf ); - } else { - $this->mParser = clone $wgParser; - } + $this->mParser = new $class( $wgParserConf ); } return $this->mParser; }