Remove ParserOptions clonations, already cloned in getParserOptions().
authorPlatonides <platonides@users.mediawiki.org>
Sun, 26 Dec 2010 19:23:11 +0000 (19:23 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 26 Dec 2010 19:23:11 +0000 (19:23 +0000)
Ref r70783

includes/Article.php

index a01f40c..2a7d6b4 100644 (file)
@@ -1499,7 +1499,7 @@ class Article {
        public function tryDirtyCache() {
                global $wgOut;
                $parserCache = ParserCache::singleton();
-               $options = clone $this->getParserOptions();
+               $options = $this->getParserOptions();
 
                if ( $wgOut->isPrintable() ) {
                        $options->setIsPrintable( true );
@@ -3597,7 +3597,7 @@ class Article {
                $edit->revid = $revid;
                $edit->newText = $text;
                $edit->pst = $this->preSaveTransform( $text );
-               $edit->popts = clone $this->getParserOptions();
+               $edit->popts = $this->getParserOptions();
                $edit->output = $wgParser->parse( $edit->pst, $this->mTitle, $edit->popts, true, true, $revid );
                $edit->oldText = $this->getContent();
 
@@ -4405,7 +4405,7 @@ class Article {
                global $wgParser, $wgEnableParserCache, $wgUseFileCache;
 
                if ( !$parserOptions ) {
-                       $parserOptions = clone $this->getParserOptions();
+                       $parserOptions = $this->getParserOptions();
                }
 
                $time = - wfTime();