aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install/controller
diff options
context:
space:
mode:
authorMate Bartus <mate.bartus@gmail.com>2015-07-22 04:01:52 +0200
committerMate Bartus <mate.bartus@gmail.com>2015-07-22 04:01:52 +0200
commit0c49b88dde77894a91145314d2d3bf4388082075 (patch)
tree8690ea4a354da4b892cd671c24f99e4ccad4f367 /phpBB/phpbb/install/controller
parent97d08d6f56cf448fd4def8a4d29c570da91faa89 (diff)
downloadforums-0c49b88dde77894a91145314d2d3bf4388082075.tar
forums-0c49b88dde77894a91145314d2d3bf4388082075.tar.gz
forums-0c49b88dde77894a91145314d2d3bf4388082075.tar.bz2
forums-0c49b88dde77894a91145314d2d3bf4388082075.tar.xz
forums-0c49b88dde77894a91145314d2d3bf4388082075.zip
[ticket/13740] Fix CS
PHPBB3-13740
Diffstat (limited to 'phpBB/phpbb/install/controller')
-rw-r--r--phpBB/phpbb/install/controller/helper.php18
1 files changed, 11 insertions, 7 deletions
diff --git a/phpBB/phpbb/install/controller/helper.php b/phpBB/phpbb/install/controller/helper.php
index 5fd0abf9c7..f3400e6ef0 100644
--- a/phpBB/phpbb/install/controller/helper.php
+++ b/phpBB/phpbb/install/controller/helper.php
@@ -233,8 +233,6 @@ class helper
$this->render_navigation();
}
-
-
/**
* Render navigation
*/
@@ -247,25 +245,31 @@ class helper
$active_main_menu = $this->get_active_main_menu($nav_array);
// Pass navigation to template
- foreach ($nav_array as $key => $entry) {
+ foreach ($nav_array as $key => $entry)
+ {
$this->template->assign_block_vars('t_block1', array(
'L_TITLE' => $this->language->lang($entry['label']),
'S_SELECTED' => ($active_main_menu === $key),
'U_TITLE' => $this->route($entry['route']),
));
- if (is_array($entry[0]) && $active_main_menu === $key) {
+ if (is_array($entry[0]) && $active_main_menu === $key)
+ {
$entry[0] = $this->sort_navigation_level($entry[0]);
- foreach ($entry[0] as $name => $sub_entry) {
- if (isset($sub_entry['stage']) && $sub_entry['stage'] === true) {
+ foreach ($entry[0] as $name => $sub_entry)
+ {
+ if (isset($sub_entry['stage']) && $sub_entry['stage'] === true)
+ {
$this->template->assign_block_vars('l_block2', array(
'L_TITLE' => $this->language->lang($sub_entry['label']),
'S_SELECTED' => (isset($sub_entry['selected']) && $sub_entry['selected'] === true),
'S_COMPLETE' => (isset($sub_entry['completed']) && $sub_entry['completed'] === true),
'STAGE_NAME' => $name,
));
- } else {
+ }
+ else
+ {
$this->template->assign_block_vars('l_block1', array(
'L_TITLE' => $this->language->lang($sub_entry['label']),
'S_SELECTED' => (isset($sub_entry['route']) && $sub_entry['route'] === $this->request->get('_route')),