@@ -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 | } |
@@ -142,7 +142,8 @@ |
||
142 | 142 | //create reflector with linked object to get the right label |
143 | 143 | try { |
144 | 144 | $linked_object = midcom::get()->dbfactory->get_object_by_guid($entry->linkGuid); |
145 | - } catch (midcom_error $e) { |
|
145 | + } |
|
146 | + catch (midcom_error $e) { |
|
146 | 147 | unset($data['entries'][$i]); |
147 | 148 | $e->log(); |
148 | 149 | continue; |
@@ -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 | } |
@@ -190,7 +190,8 @@ |
||
190 | 190 | try { |
191 | 191 | $obj1 = $this->load($arr1['guid']); |
192 | 192 | $obj2 = $this->load($arr2['guid']); |
193 | - } catch (midcom_error $e) { |
|
193 | + } |
|
194 | + catch (midcom_error $e) { |
|
194 | 195 | $e->log(); |
195 | 196 | continue; |
196 | 197 | } |
@@ -120,14 +120,16 @@ |
||
120 | 120 | if (!empty($this->customer)) { |
121 | 121 | try { |
122 | 122 | return org_openpsa_contacts_group_dba::get_cached($this->customer); |
123 | - } catch (midcom_error $e) { |
|
123 | + } |
|
124 | + catch (midcom_error $e) { |
|
124 | 125 | $e->log(); |
125 | 126 | } |
126 | 127 | } |
127 | 128 | if (!empty($this->customerContact)) { |
128 | 129 | try { |
129 | 130 | return org_openpsa_contacts_person_dba::get_cached($this->customerContact); |
130 | - } catch (midcom_error $e) { |
|
131 | + } |
|
132 | + catch (midcom_error $e) { |
|
131 | 133 | $e->log(); |
132 | 134 | } |
133 | 135 | } |
@@ -98,7 +98,8 @@ |
||
98 | 98 | if ($this->old_task) { |
99 | 99 | self::update_cache(new org_openpsa_projects_task_dba($this->old_task)); |
100 | 100 | } |
101 | - } catch (midcom_error $e) { |
|
101 | + } |
|
102 | + catch (midcom_error $e) { |
|
102 | 103 | $e->log(); |
103 | 104 | } |
104 | 105 |
@@ -48,7 +48,8 @@ |
||
48 | 48 | foreach (array_unique($tasks_to_update) as $id) { |
49 | 49 | try { |
50 | 50 | org_openpsa_expenses_hour_report_dba::update_cache(new org_openpsa_projects_task_dba($id)); |
51 | - } catch (midcom_error $e) { |
|
51 | + } |
|
52 | + catch (midcom_error $e) { |
|
52 | 53 | $e->log(); |
53 | 54 | } |
54 | 55 | } |
@@ -73,7 +73,8 @@ |
||
73 | 73 | if ($stat instanceof midcom_services_indexer_client) { |
74 | 74 | try { |
75 | 75 | $stat->reindex(); |
76 | - } catch (RequestException $e) { |
|
76 | + } |
|
77 | + catch (RequestException $e) { |
|
77 | 78 | if ($e->hasResponse()) { |
78 | 79 | $crawler = new Crawler($e->getResponse()->getBody()->getContents()); |
79 | 80 | $body = $crawler->filterXPath('//body')->html(); |