I love case-sensitivity. Don't you?
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 30 Jul 2008 14:09:02 +0000 (14:09 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 30 Jul 2008 14:09:02 +0000 (14:09 +0000)
includes/parser/CoreParserFunctions.php

index 90a33c1..37a18a2 100644 (file)
@@ -121,9 +121,9 @@ class CoreParserFunctions {
        static function fullurl( $parser, $s = '', $arg = null ) { return self::urlFunction( 'getFullURL', $s, $arg ); }
        static function fullurle( $parser, $s = '', $arg = null ) { return self::urlFunction( 'escapeFullURL', $s, $arg ); }
        static function apiurl( $parser, $s = '', $arg = null ) { 
-               global $wgEnableApi;
+               global $wgEnableAPI;
                # Don't bother linking to the API if they can't use it.
-               if ( $wgEnableApi === false ) {
+               if ( $wgEnableAPI === false ) {
                        return array( 'found' => false );
                }
                global $wgServer, $wgApiScript;