@@ -49,13 +49,13 @@ |
||
49 | 49 | if(preg_match('/^settings\./', $configuration, $m) === 1) |
50 | 50 | { |
51 | 51 | return $this->get_settings($configuration); |
52 | - } |
|
53 | - elseif(preg_match('/.+Controller$/', $configuration, $m) === 1) |
|
52 | + } elseif(preg_match('/.+Controller$/', $configuration, $m) === 1) |
|
54 | 53 | { |
55 | 54 | foreach($this->get_settings('settings.controllers_namespaces') as $controller_namespace) |
56 | 55 | { |
57 | - if(class_exists($controller_namespace.$configuration)) |
|
58 | - return $this->get_instance($controller_namespace.$configuration); |
|
56 | + if(class_exists($controller_namespace.$configuration)) { |
|
57 | + return $this->get_instance($controller_namespace.$configuration); |
|
58 | + } |
|
59 | 59 | } |
60 | 60 | } |
61 | 61 |