@@ -11,9 +11,10 @@ |
||
| 11 | 11 | $this->connection["$_name"] = $_connection; |
| 12 | 12 | $this->currentConnection = $_connection; |
| 13 | 13 | |
| 14 | - foreach ($this->modules as &$module) |
|
| 15 | - if(isset($module->currentConnection)) |
|
| 14 | + foreach ($this->modules as &$module) { |
|
| 15 | + if(isset($module->currentConnection)) |
|
| 16 | 16 | $module->addConnection($_name, $_connection); |
| 17 | + } |
|
| 17 | 18 | } |
| 18 | 19 | public function setConnection( $_name ) { |
| 19 | 20 | $this->currentConnection = $this->connection["$_name"]; |