summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-07-15 18:59:25 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-07-15 18:59:25 +0000
commit89f0d2232312646ae0795e4238b9ff6a7a090d21 (patch)
tree4eee53aa36a198b5ddb4419e91bcd6cbec9936ed /install.php
parentc86f0f7ee9aff9db57a157b9dca488bf8e242d9c (diff)
downloadbrdo-89f0d2232312646ae0795e4238b9ff6a7a090d21.tar.gz
brdo-89f0d2232312646ae0795e4238b9ff6a7a090d21.tar.bz2
#156315 follow up patch by merlinofchaos: do not display profile chooser task if there is only one profile
Diffstat (limited to 'install.php')
-rw-r--r--install.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/install.php b/install.php
index 3b8ff56ca..38cc2b1c3 100644
--- a/install.php
+++ b/install.php
@@ -790,6 +790,11 @@ function install_task_list($active = NULL) {
$profile = isset($_GET['profile']) && isset($profiles[$_GET['profile']]) ? $_GET['profile'] : '.';
$locales = install_find_locales($profile);
+ // Remove select profile if we have only one.
+ if (count($profiles) == 1) {
+ unset($tasks['profile-select']);
+ }
+
// Add tasks defined by the profile.
if ($profile) {
$function = $profile .'_profile_task_list';