From 6a45ff534ca81da3f06f417262d09c1b42fb1255 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 21 Oct 2010 18:26:17 +0000 Subject: [PATCH] Follow up r67073 : add curly to if statement --- includes/AutoLoader.php | 3 ++- includes/Autopromote.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 ) ); -- 2.20.1