From: Tim Starling Date: Fri, 27 Feb 2004 02:24:14 +0000 (+0000) Subject: bug fix -- parser cache used when it shouldn't be X-Git-Tag: 1.3.0beta1~942 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=a3e7e46c3bc5306bc5b488f3fe4c2505b68b007b;p=lhc%2Fweb%2Fwiklou.git bug fix -- parser cache used when it shouldn't be --- diff --git a/includes/Article.php b/includes/Article.php index bdba4a74b6..55f218adbd 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -305,7 +305,8 @@ class Article { { global $wgUser, $wgOut, $wgLang; global $oldid, $diff; # From query - global $wgLinkCache, $IP; + global $wgLinkCache, $IP, $wgEnableParserCache; + $fname = "Article::view"; wfProfileIn( $fname ); @@ -354,7 +355,12 @@ class Article { } $wgLinkCache->preFill( $this->mTitle ); - $wgOut->addWikiText( $text, true, $this ); + + if( $wgEnableParserCache && intval($wgUser->getOption( "stubthreshold" )) == 0 ){ + $wgOut->addWikiText( $text, true, $this ); + } else { + $wgOut->addWikiText( $text ); + } $this->viewUpdates(); wfProfileOut( $fname );