From: Ævar Arnfjörð Bjarmason Date: Thu, 28 Apr 2005 07:53:34 +0000 (+0000) Subject: * if () {} else {} converted to ? : X-Git-Tag: 1.5.0alpha1~88 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=a953aba5a3571df069f56fab4f3ac70bce7e60c8;p=lhc%2Fweb%2Fwiklou.git * if () {} else {} converted to ? : --- diff --git a/includes/Title.php b/includes/Title.php index 89312beee7..78e02e987c 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -376,8 +376,7 @@ class Title { global $wgContLang; $n = $wgContLang->getNsText( $ns ); - if ( '' == $n ) { return $title; } - else { return $n.':'.$title; } + return $n == '' ? $title : "$n:$title"; } /**