@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | ]); |
41 | 41 | } |
42 | 42 | |
43 | - if ( $this->_article->topic === $this->_topic->id |
|
43 | + if ($this->_article->topic === $this->_topic->id |
|
44 | 44 | && $this->_article->can_do('midgard:delete')) { |
45 | 45 | $delete = $this->get_workflow('delete', ['object' => $this->_article]); |
46 | 46 | $buttons[] = $delete->get_button($this->router->generate('delete', ['guid' => $this->_article->guid])); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $this->_datamanager->set_storage($this->_article); |
82 | 82 | |
83 | 83 | $arg = $this->_article->name ?: $this->_article->guid; |
84 | - if ( $arg != 'index' |
|
84 | + if ($arg != 'index' |
|
85 | 85 | && $this->_config->get('hide_navigation')) { |
86 | 86 | $this->add_breadcrumb($this->router->generate('view', ['name' =>$arg]), $this->_article->title); |
87 | 87 | } |
@@ -91,13 +91,13 @@ discard block |
||
91 | 91 | midcom::get()->metadata->set_request_metadata($this->_article->metadata->revised, $this->_article->guid); |
92 | 92 | $this->bind_view_to_object($this->_article, $this->_datamanager->get_schema()->get_name()); |
93 | 93 | |
94 | - if ( $this->_config->get('indexinnav') |
|
94 | + if ($this->_config->get('indexinnav') |
|
95 | 95 | || $this->_config->get('autoindex') |
96 | 96 | || $this->_article->name != 'index') { |
97 | 97 | $this->set_active_leaf($this->_article->id); |
98 | 98 | } |
99 | 99 | |
100 | - if ( $this->_config->get('folder_in_title') |
|
100 | + if ($this->_config->get('folder_in_title') |
|
101 | 101 | && $this->_topic->extra != $this->_article->title) { |
102 | 102 | midcom::get()->head->set_pagetitle("{$this->_topic->extra}: {$this->_article->title}"); |
103 | 103 | } else { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | ]); |
39 | 39 | } |
40 | 40 | |
41 | - if ( $this->_article->topic === $this->_topic->id |
|
41 | + if ($this->_article->topic === $this->_topic->id |
|
42 | 42 | && $this->_article->can_do('midgard:delete')) { |
43 | 43 | $delete = $this->get_workflow('delete', ['object' => $this->_article]); |
44 | 44 | $buttons[] = $delete->get_button($this->router->generate('delete', ['guid' => $this->_article->guid])); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | if ($this->_config->get('comments_enable')) { |
74 | 74 | if ($node = net_nehmer_comments_interface::get_node($this->_topic, $this->_config->get('comments_topic'))) { |
75 | 75 | $data['comments_url'] = $node[MIDCOM_NAV_RELATIVEURL] . "comment/{$this->_article->guid}/"; |
76 | - if ( $this->_topic->can_do('midgard:update') |
|
76 | + if ($this->_topic->can_do('midgard:update') |
|
77 | 77 | && $this->_topic->can_do('net.nehmer.comments:moderation')) { |
78 | 78 | net_nehmer_comments_viewer::add_head_elements(); |
79 | 79 | } |