@@ -61,7 +61,7 @@ |
||
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * @param array $data |
| 64 | - * @param \phpbb\template\twig\twig $template |
|
| 64 | + * @param \blitze\sitemaker\services\template $template |
|
| 65 | 65 | * @param string $handle |
| 66 | 66 | * @return void |
| 67 | 67 | */ |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | */ |
| 133 | 133 | protected function is_navigable(array $row) |
| 134 | 134 | { |
| 135 | - return (!$row['host'] && (!file_exists('.' . $row['item_url']) || pathinfo($row['item_url'], PATHINFO_EXTENSION ) === $this->php_ext)) ? true : false; |
|
| 135 | + return (!$row['host'] && (!file_exists('.'.$row['item_url']) || pathinfo($row['item_url'], PATHINFO_EXTENSION) === $this->php_ext)) ? true : false; |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | /** |
@@ -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->item_url && $this->item_url[0] !== '#' && $this->is_local_path($this->item_url)) |
| 155 | 155 | { |
| 156 | - $this->item_url = '/' . $this->item_url; |
|
| 156 | + $this->item_url = '/'.$this->item_url; |
|
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | return $this; |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | |
| 169 | 169 | if ($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); |