@@ -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; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | $item->title = $data['article']->title; |
19 | 19 | $arg = $data['article']->name ?: $data['article']->guid; |
20 | 20 | |
21 | -if ( $data['config']->get('link_to_external_url') |
|
21 | +if ($data['config']->get('link_to_external_url') |
|
22 | 22 | && !empty($data['article']->url)) { |
23 | 23 | $item->link = $data['article']->url; |
24 | 24 | } else { |
@@ -34,12 +34,12 @@ discard block |
||
34 | 34 | $item->description = ''; |
35 | 35 | |
36 | 36 | if ($data['article']->abstract != '') { |
37 | - $item->description .= '<div class="abstract">' . $view['abstract']. '</div>'; |
|
37 | + $item->description .= '<div class="abstract">' . $view['abstract'] . '</div>'; |
|
38 | 38 | } |
39 | 39 | |
40 | -if ( array_key_exists('image', $view) |
|
40 | +if (array_key_exists('image', $view) |
|
41 | 41 | && $data['config']->get('rss_use_image')) { |
42 | - $item->description .= "\n<div class=\"image\">" . $view['image'] .'</div>'; |
|
42 | + $item->description .= "\n<div class=\"image\">" . $view['image'] . '</div>'; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | if ($data['config']->get('rss_use_content')) { |
@@ -3,7 +3,7 @@ |
||
3 | 3 | |
4 | 4 | if ($data['first_post']) { |
5 | 5 | $summary .= ' ' . sprintf($data['l10n']->get('first post was made on %s.'), |
6 | - $data['l10n']->get_formatter()->date($data['first_post'])); |
|
6 | + $data['l10n']->get_formatter()->date($data['first_post'])); |
|
7 | 7 | } |
8 | 8 | ?> |
9 | 9 |
@@ -35,7 +35,8 @@ |
||
35 | 35 | try { |
36 | 36 | $article = new midcom_db_article($related); |
37 | 37 | echo "<li><a href=\"" . midcom::get()->permalinks->create_permalink($article->guid) . "\">{$article->title}</a></li>\n"; |
38 | - } catch (midcom_error $e) { |
|
38 | + } |
|
39 | + catch (midcom_error $e) { |
|
39 | 40 | $e->log(); |
40 | 41 | } |
41 | 42 | } |
@@ -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 |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | $published = sprintf($data['l10n']->get('posted on %s.'), "<abbr title=\"" . strftime('%Y-%m-%dT%H:%M:%S%z', $data['article']->metadata->published) . "\">" . $published . "</abbr>"); |
13 | 13 | |
14 | 14 | if (array_key_exists('ajax_comments_enable', $data)) { |
15 | - $published .= ' <a href="#switch_comments" onClick="showAjaxComments(this, \''.$data['article']->guid.'\'); return false;">' |
|
15 | + $published .= ' <a href="#switch_comments" onClick="showAjaxComments(this, \'' . $data['article']->guid . '\'); return false;">' |
|
16 | 16 | .sprintf($data['l10n']->get('%s comments'), net_nehmer_comments_comment::count_by_objectguid($data['article']->guid)) |
17 | 17 | ."</a>."; |
18 | 18 | } elseif (array_key_exists('comments_enable', $data)) { |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | &(published:h); |
29 | 29 | <?php |
30 | 30 | if ($data['linked']) { |
31 | - echo $data['l10n']->get('to') ." <a href=\"{$data['node'][MIDCOM_NAV_ABSOLUTEURL]}\">{$data['node'][MIDCOM_NAV_NAME]}</a>\n"; |
|
31 | + echo $data['l10n']->get('to') . " <a href=\"{$data['node'][MIDCOM_NAV_ABSOLUTEURL]}\">{$data['node'][MIDCOM_NAV_NAME]}</a>\n"; |
|
32 | 32 | } |
33 | 33 | ?> |
34 | 34 | </p> |
@@ -33,7 +33,8 @@ |
||
33 | 33 | $reporter_card = new org_openpsa_widgets_contact($reporter); |
34 | 34 | $entry['index_reporter'] = $reporter->rname; |
35 | 35 | $entry['reporter'] = $reporter_card->show_inline(); |
36 | - } catch (midcom_error $e) { |
|
36 | + } |
|
37 | + catch (midcom_error $e) { |
|
37 | 38 | $e->log(); |
38 | 39 | $entry['index_reporter'] = ''; |
39 | 40 | $entry['reporter'] = ''; |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $approved_text = $projects_l10n->get('not approved'); |
37 | 37 | $approved_img_src .= 'page-notapproved.png'; |
38 | 38 | } |
39 | - $approved_img = "<img src='{$approved_img_src}' alt='{$approved_text}' title='{$approved_text}' />"; |
|
39 | + $approved_img = "<img src='{$approved_img_src}' alt='{$approved_text}' title='{$approved_text}' />"; |
|
40 | 40 | $entry['approved'] = $approved_img; |
41 | 41 | } |
42 | 42 |
@@ -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 |
@@ -31,7 +31,8 @@ |
||
31 | 31 | } |
32 | 32 | $contact = new org_openpsa_widgets_contact($editor); |
33 | 33 | echo "<li class=\"updated-{$class}\"><a href=\"{$url}\"{$onclick}>{$document->title}</a> <div class=\"metadata\">" . $formatter->datetime($document->edited) . " (" . $contact->show_inline() . ")</div></li>\n"; |
34 | - } catch (midcom_error $e) { |
|
34 | + } |
|
35 | + catch (midcom_error $e) { |
|
35 | 36 | } |
36 | 37 | } |
37 | 38 | echo "</ul></div>\n"; |