Index: trunk/phase3/includes/ParserOutput.php |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | $this->mCategories = $categoryLinks; |
30 | 30 | $this->mContainsOldMagic = $containsOldMagic; |
31 | 31 | $this->mCacheTime = ''; |
32 | | - $this->mVersion = MW_PARSER_VERSION; |
| 32 | + $this->mVersion = Parser::VERSION; |
33 | 33 | $this->mTitleText = $titletext; |
34 | 34 | $this->mLinks = array(); |
35 | 35 | $this->mTemplates = array(); |
— | — | @@ -110,7 +110,7 @@ |
111 | 111 | $this->getCacheTime() < $touched || |
112 | 112 | $this->getCacheTime() <= $wgCacheEpoch || |
113 | 113 | !isset( $this->mVersion ) || |
114 | | - version_compare( $this->mVersion, MW_PARSER_VERSION, "lt" ); |
| 114 | + version_compare( $this->mVersion, Parser::VERSION, "lt" ); |
115 | 115 | } |
116 | 116 | } |
117 | 117 | |
Index: trunk/phase3/includes/Parser.php |
— | — | @@ -88,6 +88,7 @@ |
89 | 89 | */ |
90 | 90 | class Parser |
91 | 91 | { |
| 92 | + const VERSION = MW_PARSER_VERSION; |
92 | 93 | /**#@+ |
93 | 94 | * @private |
94 | 95 | */ |