@@ -116,7 +116,8 @@ |
||
116 | 116 | try { |
117 | 117 | $object = $options['widget_config']['class']::get_cached($identifier); |
118 | 118 | $preset[$identifier] = autocomplete_helper::create_item_label($object, $options['widget_config']['result_headers'], $options['widget_config']['titlefield']); |
119 | - } catch (midcom_error $e) { |
|
119 | + } |
|
120 | + catch (midcom_error $e) { |
|
120 | 121 | $e->log(); |
121 | 122 | } |
122 | 123 | } |
@@ -64,7 +64,8 @@ |
||
64 | 64 | try { |
65 | 65 | $this->__object = $this->__midcom_class_name__::get_cached($this->__identifier); |
66 | 66 | return true; |
67 | - } catch (midcom_error $e) { |
|
67 | + } |
|
68 | + catch (midcom_error $e) { |
|
68 | 69 | $e->log(); |
69 | 70 | } |
70 | 71 | return false; |
@@ -575,7 +575,8 @@ |
||
575 | 575 | $param = $param->__object; |
576 | 576 | } |
577 | 577 | $this->_group_cache[$id] = new midcom_core_group($param); |
578 | - } catch (midcom_error $e) { |
|
578 | + } |
|
579 | + catch (midcom_error $e) { |
|
579 | 580 | debug_add("Group with identifier {$id} could not be loaded: " . $e->getMessage(), MIDCOM_LOG_WARN); |
580 | 581 | $this->_group_cache[$id] = null; |
581 | 582 | } |
@@ -81,7 +81,8 @@ |
||
81 | 81 | $class = $config->get_backend_class(); |
82 | 82 | new $class(new midcom_db_topic, $config); |
83 | 83 | $this->add("MidCOM RCS", self::OK, $class); |
84 | - } catch (midcom_error $e) { |
|
84 | + } |
|
85 | + catch (midcom_error $e) { |
|
85 | 86 | $this->add("MidCOM RCS", self::ERROR, $e->getMessage()); |
86 | 87 | } |
87 | 88 | } else { |
@@ -192,7 +192,8 @@ |
||
192 | 192 | foreach ($this->$identifier as $member) { |
193 | 193 | try { |
194 | 194 | $this->_request_data['group'] = org_openpsa_contacts_group_dba::get_cached($member->gid); |
195 | - } catch (midcom_error $e) { |
|
195 | + } |
|
196 | + catch (midcom_error $e) { |
|
196 | 197 | $e->log(); |
197 | 198 | continue; |
198 | 199 | } |
@@ -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 | } |
@@ -47,7 +47,8 @@ |
||
47 | 47 | $target = new midcom_db_topic($request->request->getInt('move_to')); |
48 | 48 | $this->_move_object($target); |
49 | 49 | midcom::get()->uimessages->add($this->_l10n->get($this->_component), sprintf($this->_l10n->get('moved %s to %s'), $this->_topic->get_label(), $target->get_label())); |
50 | - } catch (midcom_error $e) { |
|
50 | + } |
|
51 | + catch (midcom_error $e) { |
|
51 | 52 | midcom::get()->uimessages->add($this->_l10n->get($this->_component), $e->getMessage(), 'error'); |
52 | 53 | } |
53 | 54 | } |
@@ -381,7 +381,8 @@ discard block |
||
381 | 381 | try { |
382 | 382 | $tag = net_nemein_tag_tag_dba::get_cached($link->tag); |
383 | 383 | $link_object_map[$link->fromGuid][$tag->tag] = $link; |
384 | - } catch (midcom_error $e) { |
|
384 | + } |
|
385 | + catch (midcom_error $e) { |
|
385 | 386 | $e->log(); |
386 | 387 | } |
387 | 388 | } |
@@ -410,7 +411,8 @@ discard block |
||
410 | 411 | $tmpobject = midcom::get()->dbfactory->convert_midgard_to_midcom($tmpobject); |
411 | 412 | } |
412 | 413 | $return[] = $tmpobject; |
413 | - } catch (midcom_error $e) { |
|
414 | + } |
|
415 | + catch (midcom_error $e) { |
|
414 | 416 | $e->log(); |
415 | 417 | } |
416 | 418 | } |