@@ -154,7 +154,7 @@ |
||
| 154 | 154 | $preparsed = preg_replace_callback("%&\(([^)]*)\);%i", [midcom_helper_formatter::class, 'convert_to_php'], $code); |
| 155 | 155 | |
| 156 | 156 | if (midcom_core_context::get()->has_custom_key('request_data')) { |
| 157 | - $data =& midcom_core_context::get()->get_custom_key('request_data'); |
|
| 157 | + $data = & midcom_core_context::get()->get_custom_key('request_data'); |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | try { |
@@ -159,7 +159,8 @@ discard block |
||
| 159 | 159 | |
| 160 | 160 | try { |
| 161 | 161 | eval('?>' . $preparsed); |
| 162 | - } catch (ParseError $e) { |
|
| 162 | + } |
|
| 163 | + catch (ParseError $e) { |
|
| 163 | 164 | throw new midcom_error("Failed to parse style element '{$path}': " . $e->getMessage() . ' in line ' . $e->getLine()); |
| 164 | 165 | } |
| 165 | 166 | } |
@@ -180,7 +181,8 @@ discard block |
||
| 180 | 181 | if ($root_topic->style) { |
| 181 | 182 | $db_style = midcom_db_style::id_from_path($root_topic->style); |
| 182 | 183 | } |
| 183 | - } catch (midcom_error_forbidden $e) { |
|
| 184 | + } |
|
| 185 | + catch (midcom_error_forbidden $e) { |
|
| 184 | 186 | $e->log(); |
| 185 | 187 | } |
| 186 | 188 | |