From: Ævar Arnfjörð Bjarmason Date: Tue, 20 Sep 2005 18:15:25 +0000 (+0000) Subject: * Removed two unused global lines X-Git-Tag: 1.6.0~1596 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=89af1f45532df6bf0d27c352663137610ea8198d;p=lhc%2Fweb%2Fwiklou.git * Removed two unused global lines * Fix for doExponent() (unused) --- diff --git a/includes/Parser.php b/includes/Parser.php index 81e932a0c9..d33ece0ffe 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -120,7 +120,6 @@ class Parser * @access public */ function Parser() { - global $wgContLang; $this->mTemplates = array(); $this->mTemplatePath = array(); $this->mTagHooks = array(); @@ -221,7 +220,7 @@ class Parser wfRunHooks( 'ParserBeforeTidy', array( &$this, &$text ) ); $text = Sanitizer::normalizeCharReferences( $text ); - global $wgUseTidy; + if ($wgUseTidy) { $text = Parser::tidy($text); } @@ -825,7 +824,7 @@ class Parser function doExponent( $text ) { $fname = 'Parser::doExponent'; wfProfileIn( $fname ); - $text = preg_replace('/\^\^(.*)\^\^/','\\1', $text); + $text = preg_replace('/\^\^(.*?)\^\^/','\\1', $text); wfProfileOut( $fname ); return $text; }