From: Aryeh Gregor Date: Wed, 4 Aug 2010 21:47:09 +0000 (+0000) Subject: "$something ? false : true" is silly. X-Git-Tag: 1.31.0-rc.0~35716 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=b8ab1e25ca1cb65fcdf928931d7884d81e2ae43e "$something ? false : true" is silly. Note: not actually tested, but it's really hard to see how it will fail . . . really! --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index f8398ee29e..81705d36d6 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -572,7 +572,7 @@ function wfGetLangObj( $langcode = false ) { */ function wfUILang() { global $wgBetterDirectionality; - return wfGetLangObj( $wgBetterDirectionality ? false: true ); + return wfGetLangObj( !$wgBetterDirectionality ); } /**