From 5f8ab0b700e2c81851b1a4e694ba131fee873cdc Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 20 Jan 2007 21:22:31 +0000 Subject: [PATCH] Fix an error introduced with r19483. Pointed out by LeonWP. --- includes/Parser.php | 1 + includes/ParserOutput.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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" ); } } -- 2.20.1