<?php
/**
- * @package MediaWiki
- * @subpackage Language
+ * @addtogroup Language
*
* @author Zhengzhu Feng <zhengzhu@gmail.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
var $mMarkup;
var $mFlags;
var $mUcfirst = false;
+
+ const CACHE_VERSION_KEY = 'VERSION 5';
+
/**
* Constructor
*
function parserConvert( $text, &$parser ) {
global $wgDisableLangConversion;
/* don't do anything if this is the conversion table */
- if ( $parser->mTitle->getNamespace() == NS_MEDIAWIKI &&
+ if ( $parser->getTitle()->getNamespace() == NS_MEDIAWIKI &&
strpos($parser->mTitle->getText(), "Conversiontable") !== false )
{
return $text;
$this->mTables = $wgMemc->get( $this->mCacheKey );
wfProfileOut( __METHOD__.'-cache' );
}
- if ( !$this->mTables || !isset( $this->mTables['VERSION 2'] ) ) {
+ if ( !$this->mTables || !isset( $this->mTables[self::CACHE_VERSION_KEY] ) ) {
wfProfileIn( __METHOD__.'-recache' );
// not in cache, or we need a fresh reload.
// we will first load the default tables
}
$this->postLoadTables();
- $this->mTables['VERSION 2'] = true;
+ $this->mTables[self::CACHE_VERSION_KEY] = true;
if($this->lockCache()) {
$wgMemc->set($this->mCacheKey, $this->mTables, 43200);
* MediaWiki:conversiontable* is updated
* @private
*/
- function OnArticleSaveComplete($article, $user, $text, $summary, $isminor, $iswatch, $section) {
+ function OnArticleSaveComplete($article, $user, $text, $summary, $isminor, $iswatch, $section, $flags, $revision) {
$titleobj = $article->getTitle();
if($titleobj->getNamespace() == NS_MEDIAWIKI) {
/*
}
-
-?>