@@ -53,8 +53,7 @@ |
||
53 | 53 | if (!$this->filesystem->exists($config_file)) |
54 | 54 | { |
55 | 55 | $this->filesystem->copy($this->config_template, $config_file, true); |
56 | - } |
|
57 | - else if ($retry && file($config_file)[1] !== '// Auto-generated configuration file for phpBB sitemaker') |
|
56 | + } else if ($retry && file($config_file)[1] !== '// Auto-generated configuration file for phpBB sitemaker') |
|
58 | 57 | { |
59 | 58 | $this->filesystem->remove($config_file); |
60 | 59 | return $this->get_settings(false); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | 'MENU_ID' => $menu_id, |
98 | 98 | 'ICON_PICKER' => $this->icon->picker(), |
99 | 99 | 'T_PATH' => $this->phpbb_root_path, |
100 | - 'UA_AJAX_URL' => $this->controller_helper->route('blitze_sitemaker_menus_admin', array(), true, '') . '/', |
|
100 | + 'UA_AJAX_URL' => $this->controller_helper->route('blitze_sitemaker_menus_admin', array(), true, '').'/', |
|
101 | 101 | )); |
102 | 102 | |
103 | 103 | $this->tpl_name = 'acp_menu'; |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | $vars = array('bulk_options', 'forumslist'); |
152 | 152 | extract($this->phpbb_dispatcher->trigger_event('blitze.sitemaker.acp_add_bulk_menu_options', compact($vars))); |
153 | 153 | |
154 | - $bulk_options['FORUMS'] = $this->get_forums_string($forumslist); |
|
154 | + $bulk_options['FORUMS'] = $this->get_forums_string($forumslist); |
|
155 | 155 | |
156 | 156 | $this->template->assign_var('bulk_options', $bulk_options); |
157 | 157 | } |
@@ -163,11 +163,11 @@ discard block |
||
163 | 163 | protected function get_forums_string(array $forumslist) |
164 | 164 | { |
165 | 165 | $forum_url = $this->controller_helper->route('blitze_sitemaker_forum', array(), true, '', UrlGeneratorInterface::RELATIVE_PATH); |
166 | - $text = $this->language->lang('FORUM') . '|' . $forum_url . "\n"; |
|
166 | + $text = $this->language->lang('FORUM').'|'.$forum_url."\n"; |
|
167 | 167 | foreach ($forumslist as $forum_id => $row) |
168 | 168 | { |
169 | - $text .= "\t" . str_replace(' ', "\t", $row['padding']); |
|
170 | - $text .= $row['forum_name'] . '|'; |
|
169 | + $text .= "\t".str_replace(' ', "\t", $row['padding']); |
|
170 | + $text .= $row['forum_name'].'|'; |
|
171 | 171 | $text .= "viewforum.{$this->php_ext}?f=$forum_id\n"; |
172 | 172 | } |
173 | 173 |