@@ -56,7 +56,7 @@ |
||
| 56 | 56 | $this->_relocate_url = midcom::get()->permalinks->create_permalink($this->_current_object->guid); |
| 57 | 57 | $data['url_prefix'] = midcom_core_context::get()->get_key(MIDCOM_CONTEXT_ANCHORPREFIX) . "__mfa/org.openpsa.relatedto/journalentry/"; |
| 58 | 58 | |
| 59 | - //add needed constraints etc. to the query-builder |
|
| 59 | + //add needed constraints etc. to the query-builder |
|
| 60 | 60 | $this->qb_journal_entries = org_openpsa_relatedto_journal_entry_dba::new_query_builder(); |
| 61 | 61 | $this->qb_journal_entries->add_constraint('linkGuid', '=', $args[0]); |
| 62 | 62 | $this->qb_journal_entries->add_order('followUp', 'DESC'); |
@@ -467,7 +467,7 @@ |
||
| 467 | 467 | |
| 468 | 468 | if (!midcom_services_at_interface::register($release_time, 'org.openpsa.user', 'reopen_account', $args)) |
| 469 | 469 | { |
| 470 | - throw new midcom_error("Failed to register interface for re_open the user account, last Midgard error was: " . midcom_connection::get_error_string()); |
|
| 470 | + throw new midcom_error("Failed to register interface for re_open the user account, last Midgard error was: " . midcom_connection::get_error_string()); |
|
| 471 | 471 | } |
| 472 | 472 | $this->_person->set_parameter("org_openpsa_user_blocked_account", "account_password", $account->get_password()); |
| 473 | 473 | $account->set_password('', false); |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | { |
| 79 | 79 | if (!$this->_object->can_do('midgard:update')) |
| 80 | 80 | { |
| 81 | - return; |
|
| 81 | + return; |
|
| 82 | 82 | } |
| 83 | 83 | $buttons = array(); |
| 84 | 84 | $workflow = $this->get_workflow('datamanager2'); |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | ( |
| 79 | 79 | 'object' => $results[0], |
| 80 | 80 | 'dialog_text' => '<p>' . sprintf($this->_l10n->get("this article has been linked from <a href=\"%s\">%s</a> and confirming will delete only the link"), $topic_url, $topic_name) . '</p>' . |
| 81 | - '<p>' . sprintf($this->_l10n->get("if you want to delete the original article, <a href=\"%s\">click here</a>"), $delete_url) . '</p>' |
|
| 81 | + '<p>' . sprintf($this->_l10n->get("if you want to delete the original article, <a href=\"%s\">click here</a>"), $delete_url) . '</p>' |
|
| 82 | 82 | )); |
| 83 | 83 | $buttons[] = $delete->get_button("delete/link/{$this->_article->guid}/"); |
| 84 | 84 | } |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | ( |
| 94 | 94 | 'object' => $results[0], |
| 95 | 95 | 'dialog_text' => '<p>' . sprintf($this->_l10n->get("this blog entry has been linked from <a href=\"%s\">%s</a> and confirming will delete only the link"), $topic_url, $topic_name) . '</p>' . |
| 96 | - '<p>' . sprintf($this->_l10n->get("if you want to delete the original article, <a href=\"%s\">click here</a>"), $delete_url) . '</p>' |
|
| 96 | + '<p>' . sprintf($this->_l10n->get("if you want to delete the original article, <a href=\"%s\">click here</a>"), $delete_url) . '</p>' |
|
| 97 | 97 | )); |
| 98 | 98 | |
| 99 | 99 | $buttons[] = $delete->get_button("delete/link/{$this->_article->guid}/"); |
@@ -353,7 +353,7 @@ |
||
| 353 | 353 | * See http://trac.midgard-project.org/ticket/1442 |
| 354 | 354 | $topic->set_parameter($this->_request_data['name'], $key, "array(\n" . $this->_draw_array($value, ' ') . ")"); |
| 355 | 355 | */ |
| 356 | - continue; |
|
| 356 | + continue; |
|
| 357 | 357 | } |
| 358 | 358 | $topic->set_parameter($this->_request_data['name'], $key, $value); |
| 359 | 359 | } |
@@ -155,18 +155,18 @@ |
||
| 155 | 155 | |
| 156 | 156 | foreach ($_POST as $key => $value) |
| 157 | 157 | { |
| 158 | - if (is_array($value)) |
|
| 159 | - { |
|
| 160 | - $value = serialize($value); |
|
| 161 | - } |
|
| 162 | - |
|
| 163 | - if (!$this->_person->set_parameter('midgard.admin.asgard:preferences', $key, $value)) |
|
| 164 | - { |
|
| 165 | - $this->_status = false; |
|
| 166 | - midcom::get()->uimessages->add($this->_l10n->get($this->_component), sprintf($this->_l10n->get('failed to save the preference for %s'), $this->_l10n->get($key))); |
|
| 167 | - } |
|
| 168 | - |
|
| 169 | - debug_add("Added configuration key-value pair {$key} => {$value}"); |
|
| 158 | + if (is_array($value)) |
|
| 159 | + { |
|
| 160 | + $value = serialize($value); |
|
| 161 | + } |
|
| 162 | + |
|
| 163 | + if (!$this->_person->set_parameter('midgard.admin.asgard:preferences', $key, $value)) |
|
| 164 | + { |
|
| 165 | + $this->_status = false; |
|
| 166 | + midcom::get()->uimessages->add($this->_l10n->get($this->_component), sprintf($this->_l10n->get('failed to save the preference for %s'), $this->_l10n->get($key))); |
|
| 167 | + } |
|
| 168 | + |
|
| 169 | + debug_add("Added configuration key-value pair {$key} => {$value}"); |
|
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | midcom::get()->auth->drop_sudo(); |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | ( |
| 109 | 109 | 'style-init' => '', |
| 110 | 110 | 'style-finish' => '', |
| 111 | - ) |
|
| 111 | + ) |
|
| 112 | 112 | ), |
| 113 | 113 | 'nodes' => array(), |
| 114 | 114 | ); |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | $select_attributes['class'] .= ' selectcomponent'; |
| 51 | 51 | |
| 52 | 52 | $select_element = $this->_form->createElement('select', $this->name, $this->_translate($this->_field['title']), |
| 53 | - array(), $select_attributes); |
|
| 53 | + array(), $select_attributes); |
|
| 54 | 54 | |
| 55 | 55 | // Translate and add |
| 56 | 56 | foreach ($this->_all_elements as $key => $value) |