@@ -175,12 +175,12 @@ |
||
175 | 175 | { |
176 | 176 | if ($page_dir) |
177 | 177 | { |
178 | - $route = ltrim(dirname($page_dir) . '/index.php', './'); |
|
178 | + $route = ltrim(dirname($page_dir).'/index.php', './'); |
|
179 | 179 | $parent_route = $this->get_parent_route_info($routes, $route); |
180 | 180 | } |
181 | - else if ($current_route === 'viewtopic.' . $this->php_ext) |
|
181 | + else if ($current_route === 'viewtopic.'.$this->php_ext) |
|
182 | 182 | { |
183 | - $route = 'viewforum.' . $this->php_ext; |
|
183 | + $route = 'viewforum.'.$this->php_ext; |
|
184 | 184 | $parent_route = $this->get_parent_route_info($routes, $route); |
185 | 185 | } |
186 | 186 | else |
@@ -177,13 +177,11 @@ |
||
177 | 177 | { |
178 | 178 | $route = ltrim(dirname($page_dir) . '/index.php', './'); |
179 | 179 | $parent_route = $this->get_parent_route_info($routes, $route); |
180 | - } |
|
181 | - else if ($current_route === 'viewtopic.' . $this->php_ext) |
|
180 | + } else if ($current_route === 'viewtopic.' . $this->php_ext) |
|
182 | 181 | { |
183 | 182 | $route = 'viewforum.' . $this->php_ext; |
184 | 183 | $parent_route = $this->get_parent_route_info($routes, $route); |
185 | - } |
|
186 | - else |
|
184 | + } else |
|
187 | 185 | { |
188 | 186 | $parent_route = $this->get_virtual_parent($routes, $current_route); |
189 | 187 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | */ |
137 | 137 | public function set_item_icon($icon) |
138 | 138 | { |
139 | - $this->item_icon = ($icon) ? trim($icon) . ' ' : ''; |
|
139 | + $this->item_icon = ($icon) ? trim($icon).' ' : ''; |
|
140 | 140 | return $this; |
141 | 141 | } |
142 | 142 | |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | // add leading / for local paths, except leading hashtags |
154 | 154 | if ($this->is_local($this->item_url) && $this->item_url[0] !== '#') |
155 | 155 | { |
156 | - $this->item_url = '/' . ltrim($this->item_url, './'); |
|
156 | + $this->item_url = '/'.ltrim($this->item_url, './'); |
|
157 | 157 | } |
158 | 158 | |
159 | 159 | return $this; |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | |
169 | 169 | if ($this->is_local($item_url) && $item_url[0] === '/') |
170 | 170 | { |
171 | - $item_url = $this->board_url . $item_url; |
|
171 | + $item_url = $this->board_url.$item_url; |
|
172 | 172 | if ($this->mod_rewrite_enabled) |
173 | 173 | { |
174 | 174 | $item_url = str_replace('app.php/', '', $item_url); |