Page MenuHomePhabricator

file_56226.txt

Authored By
bzimport
Nov 22 2014, 2:40 AM
Size
1 KB
Referenced Files
None
Subscribers
None

file_56226.txt

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;
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12195
Default Alt Text
file_56226.txt (1 KB)

Event Timeline