Reverted r48984. Fragile, doesn't work if memcached is enabled. See CodeReview.
[lhc/web/wiklou.git] / includes / parser / CoreParserFunctions.php
index 308a4e8..c855a92 100644 (file)
@@ -76,7 +76,6 @@ class CoreParserFunctions {
                $parser->setFunctionHook( 'revisionuser',     array( __CLASS__, 'revisionuser'     ), SFH_NO_HASH );
                $parser->setFunctionHook( 'tag',              array( __CLASS__, 'tagObj'           ), SFH_OBJECT_ARGS );
                $parser->setFunctionHook( 'formatdate',           array( __CLASS__, 'formatDate'           ) );
-               $parser->setFunctionHook( 'groupconvert',         array( __CLASS__, 'groupconvert'         ), SFH_NO_HASH );
 
                if ( $wgAllowDisplayTitle ) {
                        $parser->setFunctionHook( 'displaytitle', array( __CLASS__, 'displaytitle' ), SFH_NO_HASH );
@@ -113,7 +112,7 @@ class CoreParserFunctions {
                $date = $df->reformat( $pref, $date, array('match-whole') );
                return $date;
        }
-       
+
        static function ns( $parser, $part1 = '' ) {
                global $wgContLang;
                if ( intval( $part1 ) || $part1 == "0" ) {
@@ -738,12 +737,4 @@ class CoreParserFunctions {
                );
                return $parser->extensionSubstitution( $params, $frame );
        }
-       
-       /**
-        * magic word call for a group convert from LanguageConverter.
-        */
-       public static function groupconvert( $parser, $group ) {
-               global $wgContLang;
-               return $wgContLang->groupConvert( $group );
-       }
 }