@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | $element = $matches[2]; |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | - if ( isset($stylepath) |
|
| 213 | + if (isset($stylepath) |
|
| 214 | 214 | && $styleid = midcom_db_style::id_from_path($stylepath)) { |
| 215 | 215 | array_unshift($this->_scope, $styleid); |
| 216 | 216 | } |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | // This is a bit of a hack to allow &(); tags |
| 247 | 247 | $preparsed = midcom_helper_misc::preparse($style); |
| 248 | 248 | if (midcom_core_context::get()->has_custom_key('request_data')) { |
| 249 | - $data =& midcom_core_context::get()->get_custom_key('request_data'); |
|
| 249 | + $data = & midcom_core_context::get()->get_custom_key('request_data'); |
|
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | if (eval('?>' . $preparsed) === false) { |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | |
| 275 | 275 | try { |
| 276 | 276 | $root_topic = $context->get_key(MIDCOM_CONTEXT_ROOTTOPIC); |
| 277 | - if ( $root_topic->style |
|
| 277 | + if ($root_topic->style |
|
| 278 | 278 | && $db_style = midcom_db_style::id_from_path($root_topic->style)) { |
| 279 | 279 | $_style = $this->_get_element_in_styletree($db_style, $_element); |
| 280 | 280 | } |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | if (array_key_exists($src, $this->_snippets)) { |
| 314 | 314 | return $this->_snippets[$src]; |
| 315 | 315 | } |
| 316 | - if ( midcom::get()->config->get('theme') |
|
| 316 | + if (midcom::get()->config->get('theme') |
|
| 317 | 317 | && $content = midcom_helper_misc::get_element_content($_element)) { |
| 318 | 318 | $this->_snippets[$src] = $content; |
| 319 | 319 | return $content; |
@@ -278,7 +278,8 @@ |
||
| 278 | 278 | && $db_style = midcom_db_style::id_from_path($root_topic->style)) { |
| 279 | 279 | $_style = $this->_get_element_in_styletree($db_style, $_element); |
| 280 | 280 | } |
| 281 | - } catch (midcom_error_forbidden $e) { |
|
| 281 | + } |
|
| 282 | + catch (midcom_error_forbidden $e) { |
|
| 282 | 283 | $e->log(); |
| 283 | 284 | } |
| 284 | 285 | |
@@ -45,7 +45,8 @@ |
||
| 45 | 45 | break; |
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | - } catch (midcom_error $e) { |
|
| 48 | + } |
|
| 49 | + catch (midcom_error $e) { |
|
| 49 | 50 | } |
| 50 | 51 | |
| 51 | 52 | $path_parts = array_reverse($path_parts); |