From: Brion Vibber Date: Sat, 22 Aug 2009 21:53:57 +0000 (+0000) Subject: Change r52690 per suggestions on CodeReview: rearrange from boolean OR mysteriously... X-Git-Tag: 1.31.0-rc.0~40105 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=2afad5687f46a0ecc608a1402c2a3cff9db06609;p=lhc%2Fweb%2Fwiklou.git Change r52690 per suggestions on CodeReview: rearrange from boolean OR mysteriously changed to binary OR to a nice plain if statement. --- diff --git a/includes/LocalisationCache.php b/includes/LocalisationCache.php index 561fc39187..0b0f3d1797 100644 --- a/includes/LocalisationCache.php +++ b/includes/LocalisationCache.php @@ -510,8 +510,9 @@ class LocalisationCache { $data = $this->readPHPFile( $fileName, 'extension' ); $used = false; foreach ( $data as $key => $item ) { - $used = $used | - $this->mergeExtensionItem( $codeSequence, $key, $allData[$key], $item ); + if( $this->mergeExtensionItem( $codeSequence, $key, $allData[$key], $item ) ) { + $used = true; + } } if ( $used ) { $deps[] = new FileDependency( $fileName );