diff options
author | Graham Eames <grahamje@users.sourceforge.net> | 2006-03-15 21:52:48 +0000 |
---|---|---|
committer | Graham Eames <grahamje@users.sourceforge.net> | 2006-03-15 21:52:48 +0000 |
commit | e221b03b957e49cb2248b91af303c453c4d1e975 (patch) | |
tree | 1ff2c829c190471a80d5e046eb9994b0e18f9dd3 /phpBB/install/index.php | |
parent | 5b2abb82f5aa3347521e56668a3d898c6c0677d4 (diff) | |
download | forums-e221b03b957e49cb2248b91af303c453c4d1e975.tar forums-e221b03b957e49cb2248b91af303c453c4d1e975.tar.gz forums-e221b03b957e49cb2248b91af303c453c4d1e975.tar.bz2 forums-e221b03b957e49cb2248b91af303c453c4d1e975.tar.xz forums-e221b03b957e49cb2248b91af303c453c4d1e975.zip |
Some slight alterations for another forthcoming feature.
Tom: If you want to clean up my CSS changes for this or change the colour for completed stages, feel free ;-)
git-svn-id: file:///svn/phpbb/trunk@5635 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/index.php')
-rwxr-xr-x | phpBB/install/index.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/install/index.php b/phpBB/install/index.php index 8ab56c4dd0..d63973360e 100755 --- a/phpBB/install/index.php +++ b/phpBB/install/index.php @@ -206,6 +206,10 @@ class module { $this->sub = strtolower((in_array(strtoupper($selected_submod), $row['module_subs'])) ? $selected_submod : $row['module_subs'][0]); } + elseif (is_array($row['module_stages'])) + { + $this->sub = strtolower((in_array(strtoupper($selected_submod), $row['module_stages'])) ? $selected_submod : $row['module_stages'][0]); + } else { $this->sub = ''; @@ -361,6 +365,24 @@ class module )); } } + + if (is_array($this->module_ary[$this->id]['stages'])) + { + $subs = $this->module_ary[$this->id]['stages']; + $matched = false; + foreach ($subs as $option) + { + $l_option = (!empty($lang['STAGE_' . $option])) ? $lang['STAGE_' . $option] : preg_replace('#_#', ' ', $option); + $option = strtolower($option); + $matched = ($this->sub == $option) ? true : $matched; + + $template->assign_block_vars('l_block2', array( + 'L_TITLE' => $l_option, + 'S_SELECTED' => ($this->sub == $option), + 'S_COMPLETE' => !$matched, + )); + } + } } else { |