Follow up r67073 : add curly to if statement
authorAntoine Musso <hashar@users.mediawiki.org>
Thu, 21 Oct 2010 18:26:17 +0000 (18:26 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Thu, 21 Oct 2010 18:26:17 +0000 (18:26 +0000)
includes/AutoLoader.php
includes/Autopromote.php

index 0a9691c..4519fd0 100644 (file)
@@ -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;
index 5f612da..b4d89b2 100644 (file)
@@ -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 ) );