From: Ævar Arnfjörð Bjarmason Date: Tue, 3 May 2005 12:40:15 +0000 (+0000) Subject: * What awful spaghetti code! X-Git-Tag: 1.5.0alpha2~342 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=c15f48d587e7f4e9b8df77b4def8fa45592edc19;p=lhc%2Fweb%2Fwiklou.git * What awful spaghetti code! --- diff --git a/includes/SpecialMaintenance.php b/includes/SpecialMaintenance.php index 2dbf44448f..d9d0fc3f92 100644 --- a/includes/SpecialMaintenance.php +++ b/includes/SpecialMaintenance.php @@ -105,11 +105,10 @@ function getMPL ( $x ) { function getMaintenancePageBacklink( $subfunction ) { - global $wgUser , $wgContLang; - $sk = $wgUser->getSkin() ; - $ns = $wgContLang->getNamespaces() ; + global $wgUser, $wgContLang; + $sk = $wgUser->getSkin(); $r = $sk->makeKnownLink ( - $ns[-1].':Maintenance', + $wgContLang->getNsText( NS_SPECIAL ) . ':Maintenance', wfMsg( 'maintenancebacklink' ) ) ; $t = wfMsg ( $subfunction ) ;