Select menu tab with URL parameter (#348)

This commit is contained in:
Clément Oudot 2011-07-01 13:02:45 +00:00
parent 897fcc00da
commit 408682847d

View File

@ -41,7 +41,14 @@ sub menuInit {
$self->{menuError} ||= $self->{error};
# Tab to display
$self->{menuDisplayTab} = "appslist";
# Get the tab URL parameter
$self->{menuDisplayTab} = $self->param("tab") || "none";
# Default to appslist if invalid tab URL parameter
$self->{menuDisplayTab} = "appslist"
unless ( $self->{menuDisplayTab} =~ /^(password|logout)$/ );
# Force password tab in case of password error
$self->{menuDisplayTab} = "password"
if (
(