@@ -53,8 +53,7 @@ discard block |
||
| 53 | 53 | $data["messages"] = $validator->getMessages(); |
| 54 | 54 | throw new \Exception("Module config errros in user.config!", 300); |
| 55 | 55 | } |
| 56 | - } |
|
| 57 | - catch (\Exception $e) |
|
| 56 | + } catch (\Exception $e) |
|
| 58 | 57 | { |
| 59 | 58 | $file = str_replace('\\', '', __CLASS__); |
| 60 | 59 | $storage = new \Drone\Exception\Storage("cache/$file.json"); |
@@ -85,10 +84,11 @@ discard block |
||
| 85 | 84 | $layoutManager->setParams($data); |
| 86 | 85 | |
| 87 | 86 | # for AJAX requests! |
| 88 | - if ($c->isXmlHttpRequest()) |
|
| 89 | - $layoutManager->content(); |
|
| 90 | - else |
|
| 91 | - $layoutManager->fromTemplate($this, 'blank'); |
|
| 87 | + if ($c->isXmlHttpRequest()) { |
|
| 88 | + $layoutManager->content(); |
|
| 89 | + } else { |
|
| 90 | + $layoutManager->fromTemplate($this, 'blank'); |
|
| 91 | + } |
|
| 92 | 92 | } |
| 93 | 93 | } |
| 94 | 94 | |