@@ -29,7 +29,7 @@ |
||
| 29 | 29 | $formatter = $data['l10n']->get_formatter(); |
| 30 | 30 | foreach ($data['items'] as $item) { |
| 31 | 31 | echo "<tr>\n"; |
| 32 | - $date = (int)$item->get_date('U'); |
|
| 32 | + $date = (int) $item->get_date('U'); |
|
| 33 | 33 | if ($date == 0) { |
| 34 | 34 | echo " <td>" . $data['l10n']->get('n/a') . "</td>\n"; |
| 35 | 35 | } else { |
@@ -16,8 +16,8 @@ |
||
| 16 | 16 | $view['author'], |
| 17 | 17 | $formatter->datetime($created)); |
| 18 | 18 | |
| 19 | -if ( midcom::get()->auth->admin |
|
| 20 | - || ( midcom::get()->auth->user |
|
| 19 | +if (midcom::get()->auth->admin |
|
| 20 | + || (midcom::get()->auth->user |
|
| 21 | 21 | && $comment->can_do('midgard:delete'))) { |
| 22 | 22 | $creator = $comment->metadata->creator; |
| 23 | 23 | $created = $comment->metadata->created; |
@@ -1,1 +1,1 @@ |
||
| 1 | -<p><?php $data['l10n']->show('no news found.');?></p> |
|
| 2 | 1 | \ No newline at end of file |
| 2 | +<p><?php $data['l10n']->show('no news found.'); ?></p> |
|
| 3 | 3 | \ No newline at end of file |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | <textarea id="working_description" name="description" rows="3" cols="40">&(workingon.description);</textarea> |
| 50 | 50 | <div id="working_invoiceable_div" > |
| 51 | 51 | <label for="working_invoiceable"> |
| 52 | - <input type="checkbox" name="working_invoiceable" <?php echo $checked;?> id="working_invoiceable"/><?php echo $data['l10n']->get('invoiceable'); ?> |
|
| 52 | + <input type="checkbox" name="working_invoiceable" <?php echo $checked; ?> id="working_invoiceable"/><?php echo $data['l10n']->get('invoiceable'); ?> |
|
| 53 | 53 | </label> |
| 54 | 54 | </div> |
| 55 | 55 | |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | $target_person_label = midcom::get()->i18n->get_string('system', 'org.openpsa.projects'); |
| 5 | 5 | |
| 6 | 6 | $fallback_creator = midcom_db_person::get_cached(1); |
| 7 | -if ( $task_status->metadata->creator |
|
| 7 | +if ($task_status->metadata->creator |
|
| 8 | 8 | && $task_status->metadata->creator != $fallback_creator->guid) { |
| 9 | 9 | $status_changer = org_openpsa_widgets_contact::get($task_status->metadata->creator); |
| 10 | 10 | $status_changer_label = $status_changer->show_inline(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | echo "<li class=\"members\">" . midcom::get()->i18n->get_string('participants', 'org.openpsa.calendar') . ": "; |
| 14 | 14 | foreach ($event->participants as $person_id => $confirmed) { |
| 15 | 15 | $participant_card = org_openpsa_widgets_contact::get($person_id); |
| 16 | - echo $participant_card->show_inline()." "; |
|
| 16 | + echo $participant_card->show_inline() . " "; |
|
| 17 | 17 | } |
| 18 | 18 | echo "</li>\n"; |
| 19 | 19 | ?> |
@@ -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 | } |
@@ -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 |
@@ -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> |