Revert r17367 "(bug 7723) Add ic: parser function, with alias tc:, which capitalises...
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 3 Nov 2006 08:36:28 +0000 (08:36 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 3 Nov 2006 08:36:28 +0000 (08:36 +0000)
Feature creep with no apparent usefulness; would produce obviously incorrect results for mixed-case or all-caps words.

RELEASE-NOTES
includes/CoreParserFunctions.php
includes/Parser.php
languages/messages/MessagesEn.php

index f377502..617fd1b 100644 (file)
@@ -125,8 +125,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Remove entries from redirect table on article deletion
 * (bug 7788) Force section headers in new section links for users who have
   'prompt for blank edit summaries' on.
-* (bug 7723) Add ic: parser function, with alias tc:, which capitalises the first
-   letter of each word.
 * (bug 1133) Special:Emailuser: add an option to send yourself a copy your mail.
 * (bug 461) Allow "Categories:" link at bottom of pages to be customized via
   pagecategorieslink message.
index 2b05437..b2ee789 100644 (file)
@@ -59,13 +59,6 @@ class CoreParserFunctions {
                return $wgContLang->uc( $s );
        }
 
-       static function ic( $parser, $s = '' ) {
-               /*Testing showed that ucwords does NOT convert the rest of the words to lowercase
-                * Converting it all to lowercase first fixes this. */
-               $s = strtolower($s);
-               return ucwords($s);
-       }
-
        static function localurl( $parser, $s = '', $arg = null ) { return self::urlFunction( 'getLocalURL', $s, $arg ); }
        static function localurle( $parser, $s = '', $arg = null ) { return self::urlFunction( 'escapeLocalURL', $s, $arg ); }
        static function fullurl( $parser, $s = '', $arg = null ) { return self::urlFunction( 'getFullURL', $s, $arg ); }
index aa88282..336b6f8 100644 (file)
@@ -165,7 +165,6 @@ class Parser
                $this->setFunctionHook( 'padright', array( 'CoreParserFunctions', 'padright' ), SFH_NO_HASH );
                $this->setFunctionHook( 'anchorencode', array( 'CoreParserFunctions', 'anchorencode' ), SFH_NO_HASH );
                $this->setFunctionHook( 'special', array( 'CoreParserFunctions', 'special' ) );
-               $this->setFunctionHook( 'ic', array( 'CoreParserFunctions', 'ic' ), SFH_NO_HASH );
 
                if ( $wgAllowDisplayTitle ) {
                        $this->setFunctionHook( 'displaytitle', array( 'CoreParserFunctions', 'displaytitle' ), SFH_NO_HASH );
index c65247d..450e697 100644 (file)
@@ -307,7 +307,7 @@ $magicWords = array(
        'newsectionlink'         => array( 1,    '__NEWSECTIONLINK__'     ),
        'currentversion'         => array( 1,    'CURRENTVERSION'         ),
        'urlencode'              => array( 0,    'URLENCODE:'             ),
-       'anchorencode'           => array( 0,    'ANCHORENCODE'                   ),
+       'anchorencode'                   => array( 0,    'ANCHORENCODE'                   ),
        'currenttimestamp'       => array( 1,    'CURRENTTIMESTAMP'       ),
        'localtimestamp'         => array( 1,    'LOCALTIMESTAMP'         ),
        'directionmark'          => array( 1,    'DIRECTIONMARK', 'DIRMARK' ),
@@ -319,7 +319,6 @@ $magicWords = array(
        'padleft'                => array( 0,    'PADLEFT'                ),
        'padright'               => array( 0,    'PADRIGHT'               ),
        'special'                => array( 0,    'special',               ),
-       'ic'                     => array( 0,    'ic:', 'tc:'             ),
 );
 
 /**