@@ -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> |
@@ -4,7 +4,8 @@ |
||
4 | 4 | |
5 | 5 | try { |
6 | 6 | $topic = midcom_db_topic::get_cached($document->topic_guid); |
7 | -} catch (midcom_error $e) { |
|
7 | +} |
|
8 | +catch (midcom_error $e) { |
|
8 | 9 | $e->log(); |
9 | 10 | } |
10 | 11 | ?> |
@@ -1,16 +1,16 @@ |
||
1 | -<h1><?php echo $data['topic']->extra;?></h1> |
|
1 | +<h1><?php echo $data['topic']->extra; ?></h1> |
|
2 | 2 | |
3 | 3 | <div class="midcom_helper_search_form"> |
4 | 4 | <?php midcom_show_style("{$data['type']}_form"); ?> |
5 | 5 | </div> |
6 | 6 | |
7 | -<h2><?php echo $data['l10n']->get('search results');?>:</h2> |
|
7 | +<h2><?php echo $data['l10n']->get('search results'); ?>:</h2> |
|
8 | 8 | |
9 | 9 | <div class="midcom_helper_search_results"> |
10 | 10 | <p><?php echo $data['l10n']->get('your query returned no results'); ?></p> |
11 | 11 | </div> |
12 | 12 | |
13 | -<h2><?php echo $data['l10n']->get('search hints');?>:</h2> |
|
13 | +<h2><?php echo $data['l10n']->get('search hints'); ?>:</h2> |
|
14 | 14 | <p><?php |
15 | 15 | $string = 'search hints ' . $data['config']->get('search_help_message'); |
16 | 16 | echo $data['l10n']->get($string); |
@@ -1,8 +1,8 @@ |
||
1 | -<h1><?php echo $data['topic']->extra;?></h1> |
|
1 | +<h1><?php echo $data['topic']->extra; ?></h1> |
|
2 | 2 | |
3 | 3 | <?php midcom_show_style("{$data['type']}_form"); ?> |
4 | 4 | |
5 | -<h2><?php echo $data['l10n']->get('search hints');?>:</h2> |
|
5 | +<h2><?php echo $data['l10n']->get('search hints'); ?>:</h2> |
|
6 | 6 | <p><?php |
7 | 7 | $string = 'search hints ' . $data['config']->get('search_help_message'); |
8 | 8 | echo $data['l10n']->get($string); |
@@ -1,10 +1,10 @@ discard block |
||
1 | -<h1><?php echo $data['topic']->extra;?></h1> |
|
1 | +<h1><?php echo $data['topic']->extra; ?></h1> |
|
2 | 2 | |
3 | 3 | <div class="midcom_helper_search_form"> |
4 | 4 | <?php midcom_show_style("{$data['type']}_form"); ?> |
5 | 5 | </div> |
6 | 6 | |
7 | -<h2><?php echo $data['l10n']->get('search results');?>:</h2> |
|
7 | +<h2><?php echo $data['l10n']->get('search results'); ?>:</h2> |
|
8 | 8 | <?php |
9 | 9 | midcom_show_style('result_summary'); |
10 | 10 | midcom_show_style('result_nav'); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | midcom_show_style('result_nav'); |
20 | 20 | ?> |
21 | 21 | |
22 | -<h2><?php echo $data['l10n']->get('search hints');?>:</h2> |
|
22 | +<h2><?php echo $data['l10n']->get('search hints'); ?>:</h2> |
|
23 | 23 | <p><?php |
24 | 24 | $string = 'search hints ' . $data['config']->get('search_help_message'); |
25 | 25 | echo $data['l10n']->get($string); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <div class="wide"> |
2 | - <?php $data['controller']->display_form(); ?> |
|
2 | + <?php $data['controller']->display_form(); ?> |
|
3 | 3 | <!-- To open the report in new window we need to set the target via JS --> |
4 | 4 | <script type="text/javascript"> |
5 | 5 | $('.datamanager2 button[type="submit"].save').attr('formtarget', '_blank'); |
@@ -182,7 +182,8 @@ discard block |
||
182 | 182 | } |
183 | 183 | try { |
184 | 184 | $this->_storage = new $person_class($id); |
185 | - } catch (mgd_exception $e) { |
|
185 | + } |
|
186 | + catch (mgd_exception $e) { |
|
186 | 187 | debug_add("Failed to retrieve the person ID {$id}: " . $e->getMessage(), MIDCOM_LOG_INFO); |
187 | 188 | throw new midcom_error_midgard($e, $id); |
188 | 189 | } |
@@ -230,7 +231,8 @@ discard block |
||
230 | 231 | if (mgd_is_guid($id)) { |
231 | 232 | try { |
232 | 233 | return new $person_class($id); |
233 | - } catch (mgd_exception $e) { |
|
234 | + } |
|
235 | + catch (mgd_exception $e) { |
|
234 | 236 | debug_add("Failed to retrieve the person GUID {$id}: " . $e->getMessage(), MIDCOM_LOG_INFO); |
235 | 237 | throw new midcom_error_midgard($e, $id); |
236 | 238 | } |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | * 2. A group string identifier, matching the regex ^group: |
418 | 418 | * 3. A valid midcom group name |
419 | 419 | */ |
420 | - public function is_in_group(midcom_core_group|string $group) : bool |
|
420 | + public function is_in_group(midcom_core_group | string $group) : bool |
|
421 | 421 | { |
422 | 422 | if ($this->_all_groups === null) { |
423 | 423 | $this->_load_all_groups(); |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | |
476 | 476 | $timeout = midcom::get()->config->get('auth_login_session_timeout', 0); |
477 | 477 | $last_seen = $person->get_parameter('midcom', 'online'); |
478 | - if ( !$last_seen |
|
478 | + if (!$last_seen |
|
479 | 479 | || ($timeout > 0 && time() - $timeout > $last_seen)) { |
480 | 480 | return 'offline'; |
481 | 481 | } |
@@ -32,7 +32,8 @@ |
||
32 | 32 | foreach ($qb->execute() as $article) { |
33 | 33 | try { |
34 | 34 | $dm->set_storage($article); |
35 | - } catch (midcom_error $e) { |
|
35 | + } |
|
36 | + catch (midcom_error $e) { |
|
36 | 37 | $e->log(MIDCOM_LOG_WARN); |
37 | 38 | continue; |
38 | 39 | } |
@@ -112,7 +112,8 @@ |
||
112 | 112 | foreach ($qb->execute() as $article) { |
113 | 113 | try { |
114 | 114 | $datamanager->set_storage($article); |
115 | - } catch (midcom_error $e) { |
|
115 | + } |
|
116 | + catch (midcom_error $e) { |
|
116 | 117 | $e->log(); |
117 | 118 | continue; |
118 | 119 | } |