From: Rob Church Date: Wed, 15 Aug 2007 15:32:18 +0000 (+0000) Subject: Language::lc() is non-static X-Git-Tag: 1.31.0-rc.0~51763 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=d475efb07ab0bf7369f9546d0dc8852c1b43a3a6;p=lhc%2Fweb%2Fwiklou.git Language::lc() is non-static --- diff --git a/includes/SpecialVersion.php b/includes/SpecialVersion.php index 7fe253e265..a6a132e0ba 100644 --- a/includes/SpecialVersion.php +++ b/includes/SpecialVersion.php @@ -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) {