From 2afad5687f46a0ecc608a1402c2a3cff9db06609 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 22 Aug 2009 21:53:57 +0000 Subject: [PATCH] Change r52690 per suggestions on CodeReview: rearrange from boolean OR mysteriously changed to binary OR to a nice plain if statement. --- includes/LocalisationCache.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ); -- 2.20.1