@@ -54,7 +54,7 @@ |
||
54 | 54 | } |
55 | 55 | } |
56 | 56 | |
57 | - if ( $this->_topic->can_do('midgard:update') |
|
57 | + if ($this->_topic->can_do('midgard:update') |
|
58 | 58 | && $this->_topic->can_do('midcom:component_config')) { |
59 | 59 | $buttons[] = $workflow->get_button($this->router->generate('config'), [ |
60 | 60 | MIDCOM_TOOLBAR_LABEL => $this->_l10n_midcom->get('component configuration'), |
@@ -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("{$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 { |