Language::lc() is non-static
authorRob Church <robchurch@users.mediawiki.org>
Wed, 15 Aug 2007 15:32:18 +0000 (15:32 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Wed, 15 Aug 2007 15:32:18 +0000 (15:32 +0000)
includes/SpecialVersion.php

index 7fe253e..a6a132e 100644 (file)
@@ -148,10 +148,14 @@ class SpecialVersion {
 
        /** Callback to sort extensions by type */
        function compare( $a, $b ) {
-               if ( $a['name'] === $b['name'] )
+               global $wgLang;
+               if( $a['name'] === $b['name'] ) {
                        return 0;
-               else
-                       return Language::lc( $a['name'] ) > Language::lc( $b['name'] ) ? 1 : -1;
+               } else {
+                       return $wgLang->lc( $a['name'] ) > $wgLang->lc( $b['name'] )
+                               ? 1
+                               : -1;
+               }
        }
 
        function formatCredits( $name, $version = null, $author = null, $url = null, $description = null) {