"$something ? false : true" is silly.
authorAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 4 Aug 2010 21:47:09 +0000 (21:47 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 4 Aug 2010 21:47:09 +0000 (21:47 +0000)
Note: not actually tested, but it's really hard to see how it will
fail . . . really!

includes/GlobalFunctions.php

index f8398ee..81705d3 100644 (file)
@@ -572,7 +572,7 @@ function wfGetLangObj( $langcode = false ) {
  */
 function wfUILang() {
        global $wgBetterDirectionality;
-       return wfGetLangObj( $wgBetterDirectionality ? false: true );
+       return wfGetLangObj( !$wgBetterDirectionality );
 }
 
 /**