bug 11453 -- remove spurious $i parameter on getGroupIndex()
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 26 Sep 2007 19:38:05 +0000 (19:38 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 26 Sep 2007 19:38:05 +0000 (19:38 +0000)
includes/LoadBalancer.php

index 65a6d5a..b10c2a5 100644 (file)
@@ -324,13 +324,13 @@ class LoadBalancer {
 
                # Query groups
                if ( !is_array( $groups ) ) {
-                       $groupIndex = $this->getGroupIndex( $groups, $i );
+                       $groupIndex = $this->getGroupIndex( $groups );
                        if ( $groupIndex !== false ) {
                                $i = $groupIndex;
                        }
                } else {
                        foreach ( $groups as $group ) {
-                               $groupIndex = $this->getGroupIndex( $group, $i );
+                               $groupIndex = $this->getGroupIndex( $group );
                                if ( $groupIndex !== false ) {
                                        $i = $groupIndex;
                                        break;