From 7663fdd44ae80be0a8478389c3a853a22ea790d8 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 26 Dec 2010 19:23:11 +0000 Subject: [PATCH] Remove ParserOptions clonations, already cloned in getParserOptions(). Ref r70783 --- includes/Article.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index a01f40cb7c..2a7d6b48be 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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(); -- 2.20.1