@@ -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 | } |