Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F12752
file_56226.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 22 2014, 2:40 AM
2014-11-22 02:40:36 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
file_56226.txt
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12195
Default Alt Text
file_56226.txt (1 KB)
Attached To
Mode
T58226: MessageCache cloning of parser breaks stuff if it happens while in the process of parsing something
Attached
Detach File
Event Timeline
Log In to Comment