Fix an error introduced with r19483. Pointed out by LeonWP.
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 20 Jan 2007 21:22:31 +0000 (21:22 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 20 Jan 2007 21:22:31 +0000 (21:22 +0000)
includes/Parser.php
includes/ParserOutput.php

index 4cc4188..78c4a98 100644 (file)
@@ -88,6 +88,7 @@ define( 'MW_COLON_STATE_COMMENTDASHDASH', 7 );
  */
 class Parser
 {
+       const VERSION = MW_PARSER_VERSION;
        /**#@+
         * @private
         */
index 0fd98b2..57a6ac5 100644 (file)
@@ -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" );
        }
 }