From: Antoine Musso Date: Sat, 20 Jan 2007 21:22:31 +0000 (+0000) Subject: Fix an error introduced with r19483. Pointed out by LeonWP. X-Git-Tag: 1.31.0-rc.0~54264 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/One?a=commitdiff_plain;h=5f8ab0b700e2c81851b1a4e694ba131fee873cdc;p=lhc%2Fweb%2Fwiklou.git Fix an error introduced with r19483. Pointed out by LeonWP. --- diff --git a/includes/Parser.php b/includes/Parser.php index 4cc4188ffc..78c4a983d6 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -88,6 +88,7 @@ define( 'MW_COLON_STATE_COMMENTDASHDASH', 7 ); */ class Parser { + const VERSION = MW_PARSER_VERSION; /**#@+ * @private */ diff --git a/includes/ParserOutput.php b/includes/ParserOutput.php index 0fd98b2587..57a6ac547a 100644 --- a/includes/ParserOutput.php +++ b/includes/ParserOutput.php @@ -28,7 +28,7 @@ class ParserOutput $this->mCategories = $categoryLinks; $this->mContainsOldMagic = $containsOldMagic; $this->mCacheTime = ''; - $this->mVersion = MW_PARSER_VERSION; + $this->mVersion = Parser::VERSION; $this->mTitleText = $titletext; $this->mLinks = array(); $this->mTemplates = array(); @@ -110,7 +110,7 @@ class ParserOutput $this->getCacheTime() < $touched || $this->getCacheTime() <= $wgCacheEpoch || !isset( $this->mVersion ) || - version_compare( $this->mVersion, MW_PARSER_VERSION, "lt" ); + version_compare( $this->mVersion, Parser::VERSION, "lt" ); } }