From 89af1f45532df6bf0d27c352663137610ea8198d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 20 Sep 2005 18:15:25 +0000 Subject: [PATCH] * Removed two unused global lines * Fix for doExponent() (unused) --- includes/Parser.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } -- 2.20.1