From d475efb07ab0bf7369f9546d0dc8852c1b43a3a6 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Wed, 15 Aug 2007 15:32:18 +0000 Subject: [PATCH] Language::lc() is non-static --- includes/SpecialVersion.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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) { -- 2.20.1