@@ -17,7 +17,8 @@ |
||
| 17 | 17 | try { |
| 18 | 18 | $group = org_openpsa_products_product_group_dba::get_cached($product['productGroup']); |
| 19 | 19 | $desc .= $group->title . ', '; |
| 20 | - } catch (midcom_error $e) { |
|
| 20 | + } |
|
| 21 | + catch (midcom_error $e) { |
|
| 21 | 22 | $e->log(); |
| 22 | 23 | } |
| 23 | 24 | if ($product['delivery'] == org_openpsa_products_product_dba::DELIVERY_SINGLE) { |
@@ -21,7 +21,8 @@ |
||
| 21 | 21 | $original = new midcom_db_attachment($image->attachment); |
| 22 | 22 | $original_url = midcom_db_attachment::get_url($original); |
| 23 | 23 | $name = $original->name; |
| 24 | - } catch (midcom_error $e) { |
|
| 24 | + } |
|
| 25 | + catch (midcom_error $e) { |
|
| 25 | 26 | $url = MIDCOM_STATIC_URL . '/stock-icons/mime/gnome-text-blank.png'; |
| 26 | 27 | $name = $data['l10n']->get('attachment missing'); |
| 27 | 28 | $original_url = ''; |
@@ -120,13 +120,13 @@ |
||
| 120 | 120 | $grid->set_option('loadonce', true) |
| 121 | 121 | ->set_option('grouping', true) |
| 122 | 122 | ->set_option('groupingView', [ |
| 123 | - 'groupField' => ['status'], |
|
| 124 | - 'groupColumnShow' => [false], |
|
| 125 | - 'groupText' => ['<strong>{0}</strong> ({1})'], |
|
| 126 | - 'groupOrder' => ['asc'], |
|
| 127 | - 'groupSummary' => [true], |
|
| 128 | - 'showSummaryOnHide' => true |
|
| 129 | - ]) |
|
| 123 | + 'groupField' => ['status'], |
|
| 124 | + 'groupColumnShow' => [false], |
|
| 125 | + 'groupText' => ['<strong>{0}</strong> ({1})'], |
|
| 126 | + 'groupOrder' => ['asc'], |
|
| 127 | + 'groupSummary' => [true], |
|
| 128 | + 'showSummaryOnHide' => true |
|
| 129 | + ]) |
|
| 130 | 130 | ->set_option('sortname', $sortname) |
| 131 | 131 | ->set_option('sortorder', $sortorder); |
| 132 | 132 | |
@@ -73,7 +73,8 @@ discard block |
||
| 73 | 73 | } else { |
| 74 | 74 | $entry['customer'] = $customer->official; |
| 75 | 75 | } |
| 76 | - } catch (midcom_error $e) { |
|
| 76 | + } |
|
| 77 | + catch (midcom_error $e) { |
|
| 77 | 78 | } |
| 78 | 79 | |
| 79 | 80 | if ($entry['status'] === 'canceled') { |
@@ -85,7 +86,8 @@ discard block |
||
| 85 | 86 | $entry['index_contact'] = $contact->rname; |
| 86 | 87 | $contact_card = org_openpsa_widgets_contact::get($invoice->customerContact); |
| 87 | 88 | $entry['contact'] = $contact_card->show_inline(); |
| 88 | - } catch (midcom_error $e) { |
|
| 89 | + } |
|
| 90 | + catch (midcom_error $e) { |
|
| 89 | 91 | } |
| 90 | 92 | |
| 91 | 93 | $entries[] = $entry; |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php echo $data['renderer']->block($data['form'], 'form_start'); ?> |
| 2 | 2 | <div class="maa_permissions_assignees"> |
| 3 | 3 | <?php |
| 4 | - if (empty($data['form']->children['add_assignee']->vars['value'])) { |
|
| 5 | - echo $data['renderer']->label($data['form']->children['add_assignee']); |
|
| 4 | + if (empty($data['form']->children['add_assignee']->vars['value'])) { |
|
| 5 | + echo $data['renderer']->label($data['form']->children['add_assignee']); |
|
| 6 | 6 | echo $data['renderer']->widget($data['form']->children['add_assignee']); |
| 7 | - } |
|
| 8 | - ?> |
|
| 7 | + } |
|
| 8 | + ?> |
|
| 9 | 9 | </div> |
| 10 | 10 | <table class="maa_permissions_items"> |
| 11 | 11 | <thead> |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | $workflow = new midcom\workflow\delete(['object' => $file, 'label' => $file->name]); |
| 22 | 22 | $revisor = midcom::get()->auth->get_user($file->metadata->revisor); |
| 23 | 23 | $class = ''; |
| 24 | - if ( isset($data['file']) |
|
| 24 | + if (isset($data['file']) |
|
| 25 | 25 | && $file->name == $data['file']->name) { |
| 26 | 26 | $class = ' class="selected"'; |
| 27 | 27 | } |
@@ -61,7 +61,8 @@ |
||
| 61 | 61 | try { |
| 62 | 62 | ?>&(data['code']:p);<?php |
| 63 | 63 | |
| 64 | - } catch (Exception $e) { |
|
| 64 | + } |
|
| 65 | + catch (Exception $e) { |
|
| 65 | 66 | echo '<div class="shell-error">' . $e->getMessage() . '</div>'; |
| 66 | 67 | echo htmlentities($e->getTraceAsString()); |
| 67 | 68 | } |
@@ -16,9 +16,9 @@ |
||
| 16 | 16 | <div class="search-form"> |
| 17 | 17 | <form method='get' name='midcom_helper_imagepopup_search_form' action='&(url);' class='midcom.helper.imagepopup'> |
| 18 | 18 | <label for="midcom_helper_imagepopup_query"> |
| 19 | - <?php echo $data['l10n']->get('query');?>: |
|
| 19 | + <?php echo $data['l10n']->get('query'); ?>: |
|
| 20 | 20 | <input type='text' size='60' name='query' id='midcom_helper_imagepopup_query' value='&(query);' /> |
| 21 | 21 | </label> |
| 22 | - <input type='submit' name='submit' value='<?php echo $data['l10n']->get('search');?>' /> |
|
| 22 | + <input type='submit' name='submit' value='<?php echo $data['l10n']->get('search'); ?>' /> |
|
| 23 | 23 | </form> |
| 24 | 24 | </div> |
| 25 | 25 | \ No newline at end of file |
@@ -8,6 +8,6 @@ |
||
| 8 | 8 | echo '<li' . ($link['selected'] ? ' class="selected"' : '') . '>'; |
| 9 | 9 | echo '<a href="' . $link['url'] . '/">' . $link['label'] . '</a></li>'; |
| 10 | 10 | } |
| 11 | - ?> |
|
| 11 | + ?> |
|
| 12 | 12 | </ul> |
| 13 | 13 | </div> |
| 14 | 14 | \ No newline at end of file |
@@ -19,11 +19,11 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | <table cellspacing="0" cellpadding="3" border="0"> |
| 21 | 21 | <tr> |
| 22 | - <td><?php echo $data['l10n']->get('query');?>:</td> |
|
| 22 | + <td><?php echo $data['l10n']->get('query'); ?>:</td> |
|
| 23 | 23 | <td><input type='text' style="width: 20em;" name='query' value=&(query:h); /></td> |
| 24 | 24 | </tr> |
| 25 | 25 | <tr> |
| 26 | - <td><?php echo $data['l10n']->get('limit search by topic tree');?>:</td> |
|
| 26 | + <td><?php echo $data['l10n']->get('limit search by topic tree'); ?>:</td> |
|
| 27 | 27 | <td> |
| 28 | 28 | <select name="topic" size="1" style="width: 20em;"> |
| 29 | 29 | <?php |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | </td> |
| 39 | 39 | </tr> |
| 40 | 40 | <tr> |
| 41 | - <td><?php echo $data['l10n']->get('limit search by content type');?>:</td> |
|
| 41 | + <td><?php echo $data['l10n']->get('limit search by content type'); ?>:</td> |
|
| 42 | 42 | <td> |
| 43 | 43 | <select name="component" size="1" style="width: 20em;"> |
| 44 | 44 | <?php |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | </td> |
| 54 | 54 | </tr> |
| 55 | 55 | <tr> |
| 56 | - <td><?php echo $data['l10n']->get('limit search by last modified');?>:</td> |
|
| 56 | + <td><?php echo $data['l10n']->get('limit search by last modified'); ?>:</td> |
|
| 57 | 57 | <td> |
| 58 | 58 | <select name="lastmodified" size="1" style="width: 20em;"> |
| 59 | 59 | <?php |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | </td> |
| 69 | 69 | </tr> |
| 70 | 70 | <tr> |
| 71 | - <td colspan="2"><input type='submit' name='submit' value='<?php echo $data['l10n']->get('search');?>' /></td> |
|
| 71 | + <td colspan="2"><input type='submit' name='submit' value='<?php echo $data['l10n']->get('search'); ?>' /></td> |
|
| 72 | 72 | </tr> |
| 73 | 73 | </table> |
| 74 | 74 | </form> |