X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FParser.php;h=eaecedd5a391c8eb67a02e8cf13b72ca89e52dce;hb=54c1e18eec6985ec72ca89142b27b9f6b9ac7eb2;hp=efad151b6cc0bdf3d5d63b73d72c2ffedfac632e;hpb=c37d6549fdffc9b53485a25d9f820385ecd91a52;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index efad151b6c..eaecedd5a3 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1340,6 +1340,7 @@ class Parser { if ( MWTidy::isEnabled() && $this->mOptions->getTidy() ) { $text = MWTidy::tidy( $text ); + $this->mOutput->addModuleStyles( MWTidy::getModuleStyles() ); } else { # attempt to sanitize at least some nesting problems # (bug #2702 and quite a few others) @@ -3751,7 +3752,6 @@ class Parser { public function callParserFunction( $frame, $function, array $args = array() ) { global $wgContLang; - # Case sensitive functions if ( isset( $this->mFunctionSynonyms[1][$function] ) ) { $function = $this->mFunctionSynonyms[1][$function]; @@ -5763,7 +5763,6 @@ class Parser { throw new MWException( __METHOD__ . " can only be called when actually parsing something" ); } - $this->mOutput->setCacheTime( -1 ); // old style, for compatibility $this->mOutput->updateCacheExpiry( 0 ); // new style, for consistency }