@@ -141,7 +141,8 @@ discard block |
||
| 141 | 141 | foreach ($this->_articles as $article_counter => $article) { |
| 142 | 142 | try { |
| 143 | 143 | $data['datamanager']->set_storage($article); |
| 144 | - } catch (midcom_error $e) { |
|
| 144 | + } |
|
| 145 | + catch (midcom_error $e) { |
|
| 145 | 146 | $e->log(); |
| 146 | 147 | continue; |
| 147 | 148 | } |
@@ -178,7 +179,8 @@ discard block |
||
| 178 | 179 | if ($this->_config->get('comments_topic')) { |
| 179 | 180 | try { |
| 180 | 181 | $comments_topic = new midcom_db_topic($this->_config->get('comments_topic')); |
| 181 | - } catch (midcom_error $e) { |
|
| 182 | + } |
|
| 183 | + catch (midcom_error $e) { |
|
| 182 | 184 | return false; |
| 183 | 185 | } |
| 184 | 186 | |
@@ -7,7 +7,8 @@ |
||
| 7 | 7 | try { |
| 8 | 8 | $person = new midcom_db_person($metadata->locker); |
| 9 | 9 | $name = $person->name; |
| 10 | -} catch (midcom_error $e) { |
|
| 10 | +} |
|
| 11 | +catch (midcom_error $e) { |
|
| 11 | 12 | $name = $l10n_midcom->get('unknown user'); |
| 12 | 13 | $e->log(); |
| 13 | 14 | } |
@@ -12,7 +12,8 @@ |
||
| 12 | 12 | foreach ($data['wikilinks'] as $link) { |
| 13 | 13 | try { |
| 14 | 14 | $page = new net_nemein_wiki_wikipage($link->frompage); |
| 15 | - } catch (midcom_error $e) { |
|
| 15 | + } |
|
| 16 | + catch (midcom_error $e) { |
|
| 16 | 17 | $e->log(); |
| 17 | 18 | continue; |
| 18 | 19 | } |
@@ -35,7 +35,8 @@ |
||
| 35 | 35 | try { |
| 36 | 36 | $article = new midcom_db_article($related); |
| 37 | 37 | echo "<li><a href=\"" . midcom::get()->permalinks->create_permalink($article->guid) . "\">{$article->title}</a></li>\n"; |
| 38 | - } catch (midcom_error $e) { |
|
| 38 | + } |
|
| 39 | + catch (midcom_error $e) { |
|
| 39 | 40 | $e->log(); |
| 40 | 41 | } |
| 41 | 42 | } |
@@ -33,7 +33,8 @@ |
||
| 33 | 33 | $reporter_card = new org_openpsa_widgets_contact($reporter); |
| 34 | 34 | $entry['index_reporter'] = $reporter->rname; |
| 35 | 35 | $entry['reporter'] = $reporter_card->show_inline(); |
| 36 | - } catch (midcom_error $e) { |
|
| 36 | + } |
|
| 37 | + catch (midcom_error $e) { |
|
| 37 | 38 | $e->log(); |
| 38 | 39 | $entry['index_reporter'] = ''; |
| 39 | 40 | $entry['reporter'] = ''; |
@@ -31,7 +31,8 @@ |
||
| 31 | 31 | } |
| 32 | 32 | $contact = new org_openpsa_widgets_contact($editor); |
| 33 | 33 | echo "<li class=\"updated-{$class}\"><a href=\"{$url}\"{$onclick}>{$document->title}</a> <div class=\"metadata\">" . $formatter->datetime($document->edited) . " (" . $contact->show_inline() . ")</div></li>\n"; |
| 34 | - } catch (midcom_error $e) { |
|
| 34 | + } |
|
| 35 | + catch (midcom_error $e) { |
|
| 35 | 36 | } |
| 36 | 37 | } |
| 37 | 38 | echo "</ul></div>\n"; |
@@ -33,7 +33,8 @@ |
||
| 33 | 33 | $task_label = "<a href=\"{$data['projects_url']}task/{$task->guid}/\">{$task_label}</a>"; |
| 34 | 34 | } |
| 35 | 35 | echo $task_label; |
| 36 | - } catch (midcom_error $e) { |
|
| 36 | + } |
|
| 37 | + catch (midcom_error $e) { |
|
| 37 | 38 | } |
| 38 | 39 | ?> |
| 39 | 40 | </td> |
@@ -19,7 +19,8 @@ |
||
| 19 | 19 | $customer_html = '<a href="' . $contacts_url . '/group/' . $customer->guid . '/">' . $customer_html . "</a>\n"; |
| 20 | 20 | } |
| 21 | 21 | echo $customer_html; |
| 22 | - } catch (midcom_error $e) { |
|
| 22 | + } |
|
| 23 | + catch (midcom_error $e) { |
|
| 23 | 24 | } |
| 24 | 25 | |
| 25 | 26 | if ($project->manager) { |
@@ -6,7 +6,8 @@ |
||
| 6 | 6 | foreach ($data['prospects'] as $prospect) { |
| 7 | 7 | try { |
| 8 | 8 | $person = org_openpsa_contacts_person_dba::get_cached($prospect->person); |
| 9 | - } catch (midcom_error $e) { |
|
| 9 | + } |
|
| 10 | + catch (midcom_error $e) { |
|
| 10 | 11 | continue; |
| 11 | 12 | } ?> |
| 12 | 13 | <person> |