limit report on page view
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 30 Nov 2007 16:57:02 +0000 (16:57 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 30 Nov 2007 16:57:02 +0000 (16:57 +0000)
includes/Article.php

index 045ea69..96ff213 100644 (file)
@@ -3147,9 +3147,11 @@ class Article {
 
                $popts = $wgOut->parserOptions();
                $popts->setTidy(true);
+               $popts->enableLimitReport();
                $parserOutput = $wgParser->parse( $text, $this->mTitle,
                        $popts, true, true, $this->getRevIdFetched() );
                $popts->setTidy(false);
+               $popts->enableLimitReport( false );
                if ( $cache && $this && $parserOutput->getCacheTime() != -1 ) {
                        $parserCache =& ParserCache::singleton();
                        $parserCache->save( $parserOutput, $this, $wgUser );