Index: trunk/phase3/includes/Article.php |
— | — | @@ -834,7 +834,7 @@ |
835 | 835 | $oldid = $this->getOldID(); |
836 | 836 | $parserCache = ParserCache::singleton(); |
837 | 837 | |
838 | | - $parserOptions = clone $this->getParserOptions(); |
| 838 | + $parserOptions = $this->getParserOptions(); |
839 | 839 | # Render printable version, use printable version cache |
840 | 840 | if ( $wgOut->isPrintable() ) { |
841 | 841 | $parserOptions->setIsPrintable( true ); |
— | — | @@ -1470,7 +1470,7 @@ |
1471 | 1471 | |
1472 | 1472 | $oldid = $this->getOldID(); |
1473 | 1473 | $useParserCache = $this->useParserCache( $oldid ); |
1474 | | - $parserOptions = clone $this->getParserOptions(); |
| 1474 | + $parserOptions = $this->getParserOptions(); |
1475 | 1475 | |
1476 | 1476 | # Render printable version, use printable version cache |
1477 | 1477 | $parserOptions->setIsPrintable( $wgOut->isPrintable() ); |
— | — | @@ -4465,7 +4465,9 @@ |
4466 | 4466 | $this->mParserOptions->enableLimitReport(); |
4467 | 4467 | } |
4468 | 4468 | |
4469 | | - return $this->mParserOptions; |
| 4469 | + // Clone to allow modifications of the return value without affecting |
| 4470 | + // the cache |
| 4471 | + return clone $this->mParserOptions; |
4470 | 4472 | } |
4471 | 4473 | |
4472 | 4474 | /** |