@@ -103,12 +103,12 @@ |
||
103 | 103 | if (!empty($guid)) { |
104 | 104 | //pass the urls & titles for the tabs |
105 | 105 | $tabdata[] = [ |
106 | - 'url' => '__mfa/org.openpsa.relatedto/journalentry/' . $guid . '/', |
|
107 | - 'title' => midcom::get()->i18n->get_string('journal entries', 'org.openpsa.relatedto'), |
|
106 | + 'url' => '__mfa/org.openpsa.relatedto/journalentry/' . $guid . '/', |
|
107 | + 'title' => midcom::get()->i18n->get_string('journal entries', 'org.openpsa.relatedto'), |
|
108 | 108 | ]; |
109 | 109 | $tabdata[] = [ |
110 | - 'url' => '__mfa/org.openpsa.relatedto/render/' . $guid . '/both/', |
|
111 | - 'title' => midcom::get()->i18n->get_string('related objects', 'org.openpsa.relatedto'), |
|
110 | + 'url' => '__mfa/org.openpsa.relatedto/render/' . $guid . '/both/', |
|
111 | + 'title' => midcom::get()->i18n->get_string('related objects', 'org.openpsa.relatedto'), |
|
112 | 112 | ]; |
113 | 113 | } |
114 | 114 |
@@ -5,29 +5,29 @@ |
||
5 | 5 | ?> |
6 | 6 | <div class="area org_openpsa_helper_box"><h3><?php echo $data['l10n']->get('offers'); ?></h3> |
7 | 7 | <ul><?php |
8 | - foreach ($data['offers'] as $offer) { |
|
9 | - echo '<li><span class="org_openpsa_helpers_fileinfo">'; |
|
10 | - $attachment = $offer->get_file(); |
|
11 | - $delete_link = $data['router']->generate('delete_offer', ['guid' => $offer->guid]); |
|
12 | - $edit_link = $data['router']->generate('edit_offer', ['guid' => $offer->guid]); |
|
8 | + foreach ($data['offers'] as $offer) { |
|
9 | + echo '<li><span class="org_openpsa_helpers_fileinfo">'; |
|
10 | + $attachment = $offer->get_file(); |
|
11 | + $delete_link = $data['router']->generate('delete_offer', ['guid' => $offer->guid]); |
|
12 | + $edit_link = $data['router']->generate('edit_offer', ['guid' => $offer->guid]); |
|
13 | 13 | |
14 | - if (!empty($attachment)) { |
|
15 | - $url = midcom_db_attachment::get_url($attachment); |
|
16 | - echo '<a href="' . $url . '" class="icon"><i class="fa fa-file-text-o"></i></a>'; |
|
17 | - } |
|
18 | - echo '<span class="info">'; |
|
19 | - echo '<span class="filename">' . $offer->get_label(); |
|
20 | - echo ' <a class="actions" href="' . $delete_link . '"><i class="fa fa-trash" title="' . $data['l10n_midcom']->get('delete') . '"></i></a>'; |
|
21 | - echo ' <a class="actions" ' . $wf->render_attributes() . ' href="' . $edit_link . '"><i class="fa fa-pencil" title="' . $data['l10n_midcom']->get('edit') . '"></i></a>'; |
|
22 | - echo "</span>\n"; |
|
23 | - if (!empty($attachment)) { |
|
24 | - echo ' <span class="date">' . $formatter->datetime($attachment->metadata->revised) . '</span> '; |
|
25 | - $person_card = org_openpsa_widgets_contact::get($attachment->metadata->revisor); |
|
26 | - echo $person_card->show_inline(); |
|
27 | - } |
|
28 | - echo "</span></span></li>\n"; |
|
29 | - } |
|
30 | - ?> |
|
14 | + if (!empty($attachment)) { |
|
15 | + $url = midcom_db_attachment::get_url($attachment); |
|
16 | + echo '<a href="' . $url . '" class="icon"><i class="fa fa-file-text-o"></i></a>'; |
|
17 | + } |
|
18 | + echo '<span class="info">'; |
|
19 | + echo '<span class="filename">' . $offer->get_label(); |
|
20 | + echo ' <a class="actions" href="' . $delete_link . '"><i class="fa fa-trash" title="' . $data['l10n_midcom']->get('delete') . '"></i></a>'; |
|
21 | + echo ' <a class="actions" ' . $wf->render_attributes() . ' href="' . $edit_link . '"><i class="fa fa-pencil" title="' . $data['l10n_midcom']->get('edit') . '"></i></a>'; |
|
22 | + echo "</span>\n"; |
|
23 | + if (!empty($attachment)) { |
|
24 | + echo ' <span class="date">' . $formatter->datetime($attachment->metadata->revised) . '</span> '; |
|
25 | + $person_card = org_openpsa_widgets_contact::get($attachment->metadata->revisor); |
|
26 | + echo $person_card->show_inline(); |
|
27 | + } |
|
28 | + echo "</span></span></li>\n"; |
|
29 | + } |
|
30 | + ?> |
|
31 | 31 | </ul> |
32 | 32 | </div> |
33 | 33 | <?php } ?> |
34 | 34 | \ No newline at end of file |
@@ -61,7 +61,7 @@ |
||
61 | 61 | public static function get_by_object(org_openpsa_invoices_interfaces_customer $object) : self |
62 | 62 | { |
63 | 63 | if ( !($bd = self::get_billing_data(org_openpsa_contacts_group_dba::class, $object->customer)) |
64 | - // check if the customerContact is set and has invoice_data |
|
64 | + // check if the customerContact is set and has invoice_data |
|
65 | 65 | && !($bd = self::get_billing_data(org_openpsa_contacts_person_dba::class, $object->customerContact))) { |
66 | 66 | $bd = new self(); |
67 | 67 | $due = midcom_baseclasses_components_configuration::get('org.openpsa.invoices', 'config')->get('default_due_days'); |
@@ -148,13 +148,13 @@ |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
151 | - * Inserts a link detector to the given HTML source. All outgoing |
|
152 | - * HTTP links in the source HTML are replaced with the given |
|
153 | - * link detector address so that the token "URL" is replaced with |
|
154 | - * encoded form of the original link. It is expected that the link detector |
|
155 | - * address points to a script that records the passed link and |
|
156 | - * forwards the client to the real link target. |
|
157 | - */ |
|
151 | + * Inserts a link detector to the given HTML source. All outgoing |
|
152 | + * HTTP links in the source HTML are replaced with the given |
|
153 | + * link detector address so that the token "URL" is replaced with |
|
154 | + * encoded form of the original link. It is expected that the link detector |
|
155 | + * address points to a script that records the passed link and |
|
156 | + * forwards the client to the real link target. |
|
157 | + */ |
|
158 | 158 | private function _insert_link_detector(string $html, string $address) : string |
159 | 159 | { |
160 | 160 | $address = addslashes($address); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | echo '<span class="toolbar_label">' . $data['l10n_midcom']->get('delete') . '</span></a></li>'; |
24 | 24 | if ( midcom::get()->config->get('auth_allow_trusted') === true |
25 | 25 | && $data['person']->can_do('org.openpsa.user:su')) { |
26 | - echo '<li><a class="button" href="' . $data['router']->generate('account_su', ['guid' => $data['person']->guid]) . '">' . $data['l10n']->get('switch to user') . "</a></li>\n"; |
|
26 | + echo '<li><a class="button" href="' . $data['router']->generate('account_su', ['guid' => $data['person']->guid]) . '">' . $data['l10n']->get('switch to user') . "</a></li>\n"; |
|
27 | 27 | } |
28 | 28 | echo "</ul>\n"; |
29 | 29 | } |
@@ -9,11 +9,11 @@ |
||
9 | 9 | use midcom\datamanager\indexer\client; |
10 | 10 | use midcom\datamanager\datamanager; |
11 | 11 | |
12 | - /** |
|
13 | - * Indexer client class |
|
14 | - * |
|
15 | - * @package org.openpsa.invoices |
|
16 | - */ |
|
12 | + /** |
|
13 | + * Indexer client class |
|
14 | + * |
|
15 | + * @package org.openpsa.invoices |
|
16 | + */ |
|
17 | 17 | class org_openpsa_invoices_midcom_indexer extends client |
18 | 18 | { |
19 | 19 | public function prepare_document(midcom_services_indexer_document $document, datamanager $dm) |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | if ( !$this->can_do('midgard:update') |
205 | 205 | || !$this->can_do('midgard:parameters')) { |
206 | 206 | debug_add("Failed to set parameters, midgard:update or midgard:parameters on " . static::class . " {$this->guid} not granted for the current user.", |
207 | - MIDCOM_LOG_ERROR); |
|
207 | + MIDCOM_LOG_ERROR); |
|
208 | 208 | midcom_connection::set_error(MGD_ERR_ACCESS_DENIED); |
209 | 209 | return false; |
210 | 210 | } |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | if ( !$this->can_do('midgard:update') |
249 | 249 | || !$this->can_do('midgard:parameters')) { |
250 | 250 | debug_add("Failed to delete parameters, midgard:update or midgard:parameters on " . static::class . " {$this->guid} not granted for the current user.", |
251 | - MIDCOM_LOG_ERROR); |
|
251 | + MIDCOM_LOG_ERROR); |
|
252 | 252 | midcom_connection::set_error(MGD_ERR_ACCESS_DENIED); |
253 | 253 | return false; |
254 | 254 | } |
@@ -253,15 +253,15 @@ |
||
253 | 253 | private static array $_default_magic_class_privileges = []; |
254 | 254 | |
255 | 255 | /** |
256 | - * Internal cache of the content privileges of users on content objects, this is |
|
257 | - * an associative array using a combination of the user identifier and the object's |
|
258 | - * guid as index. The privileges for the anonymous user use the magic |
|
259 | - * EVERYONE as user identifier. |
|
260 | - * |
|
261 | - * This must not be merged with the class-wide privileges_cache, because otherwise |
|
262 | - * class_default_privileges for child objects might be overridden by parent default |
|
263 | - * privileges |
|
264 | - */ |
|
256 | + * Internal cache of the content privileges of users on content objects, this is |
|
257 | + * an associative array using a combination of the user identifier and the object's |
|
258 | + * guid as index. The privileges for the anonymous user use the magic |
|
259 | + * EVERYONE as user identifier. |
|
260 | + * |
|
261 | + * This must not be merged with the class-wide privileges_cache, because otherwise |
|
262 | + * class_default_privileges for child objects might be overridden by parent default |
|
263 | + * privileges |
|
264 | + */ |
|
265 | 265 | private static array $_content_privileges_cache = []; |
266 | 266 | |
267 | 267 | /** |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <div class="content-with-sidebar"> |
2 | 2 | <div class="main"> |
3 | 3 | <?php |
4 | - $data['view']->display_view(true); |
|
4 | + $data['view']->display_view(true); |
|
5 | 5 | $prefix = midcom_core_context::get()->get_key(MIDCOM_CONTEXT_ANCHORPREFIX); |
6 | 6 | midcom::get()->dynamic_load($prefix . 'members/' . $data['group']->guid . '/'); |
7 | 7 | ?> |