From: Antoine Musso Date: Thu, 21 Oct 2010 18:26:17 +0000 (+0000) Subject: Follow up r67073 : add curly to if statement X-Git-Tag: 1.31.0-rc.0~34390 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=6a45ff534ca81da3f06f417262d09c1b42fb1255;p=lhc%2Fweb%2Fwiklou.git Follow up r67073 : add curly to if statement --- diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index 0a9691cb54..4519fd090b 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -748,8 +748,9 @@ class AutoLoader { } if ( !$filename ) { - if ( function_exists( 'wfDebug' ) ) + if ( function_exists( 'wfDebug' ) ) { wfDebug( "Class {$className} not found; skipped loading\n" ); + } # Give up return false; diff --git a/includes/Autopromote.php b/includes/Autopromote.php index 5f612da125..b4d89b24ac 100644 --- a/includes/Autopromote.php +++ b/includes/Autopromote.php @@ -17,8 +17,9 @@ class Autopromote { $promote = array(); foreach ( $wgAutopromote as $group => $cond ) { - if ( self::recCheckCondition( $cond, $user ) ) + if ( self::recCheckCondition( $cond, $user ) ) { $promote[] = $group; + } } wfRunHooks( 'GetAutoPromoteGroups', array( $user, &$promote ) );