r19532 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19531‎ | r19532 | r19533 >
Date:21:22, 20 January 2007
Author:hashar
Status:old
Tags:
Comment:
Fix an error introduced with r19483. Pointed out by LeonWP.
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)
  • /trunk/phase3/includes/ParserOutput.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ParserOutput.php
@@ -28,7 +28,7 @@
2929 $this->mCategories = $categoryLinks;
3030 $this->mContainsOldMagic = $containsOldMagic;
3131 $this->mCacheTime = '';
32 - $this->mVersion = MW_PARSER_VERSION;
 32+ $this->mVersion = Parser::VERSION;
3333 $this->mTitleText = $titletext;
3434 $this->mLinks = array();
3535 $this->mTemplates = array();
@@ -110,7 +110,7 @@
111111 $this->getCacheTime() < $touched ||
112112 $this->getCacheTime() <= $wgCacheEpoch ||
113113 !isset( $this->mVersion ) ||
114 - version_compare( $this->mVersion, MW_PARSER_VERSION, "lt" );
 114+ version_compare( $this->mVersion, Parser::VERSION, "lt" );
115115 }
116116 }
117117
Index: trunk/phase3/includes/Parser.php
@@ -88,6 +88,7 @@
8989 */
9090 class Parser
9191 {
 92+ const VERSION = MW_PARSER_VERSION;
9293 /**#@+
9394 * @private
9495 */

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r19483Split out ParserOptions and ParserOutput classes in their own files....hashar12:50, 20 January 2007