@@ -51,7 +51,8 @@ |
||
| 51 | 51 | if ($root_topic->style) { |
| 52 | 52 | $scope = midcom_db_style::id_from_path($root_topic->style); |
| 53 | 53 | } |
| 54 | - } catch (midcom_error_forbidden $e) { |
|
| 54 | + } |
|
| 55 | + catch (midcom_error_forbidden $e) { |
|
| 55 | 56 | $e->log(); |
| 56 | 57 | } |
| 57 | 58 | } |
@@ -136,7 +136,8 @@ |
||
| 136 | 136 | |
| 137 | 137 | try { |
| 138 | 138 | eval('?>' . $preparsed); |
| 139 | - } catch (ParseError $e) { |
|
| 139 | + } |
|
| 140 | + catch (ParseError $e) { |
|
| 140 | 141 | throw new midcom_error("Failed to parse style element '{$path}': " . $e->getMessage() . ' in line ' . $e->getLine()); |
| 141 | 142 | } |
| 142 | 143 | } |