summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-04-25 07:21:56 +0200
committergerv%gerv.net <>2002-04-25 07:21:56 +0200
commitdcba2bd7a21ae0415d1b743c8a8caa0ba517c0da (patch)
tree56da3a7839deb45a5054a340d3b3eccd352bd13e /userprefs.cgi
parentf11fd90d7ac7e03535acbc9217e2352ea888e45d (diff)
downloadbugzilla-dcba2bd7a21ae0415d1b743c8a8caa0ba517c0da.tar.gz
bugzilla-dcba2bd7a21ae0415d1b743c8a8caa0ba517c0da.tar.xz
Bug 137183 - tab names should be in the template not in the .cgi. Patch by gerv; r=afranke, myk.
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi19
1 files changed, 1 insertions, 18 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index 79690563c..977dda7ee 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -365,24 +365,7 @@ $vars->{'changes_saved'} = $::FORM{'dosave'};
my $current_tab_name = $::FORM{'tab'} || "account";
-my @tabs = ( { name => "account", description => "Account settings",
- saveable => "1" },
- { name => "email", description => "Email settings",
- saveable => "1" },
- { name => "footer", description => "Page footer",
- saveable => "1" },
- { name => "permissions", description => "Permissions",
- saveable => "0" } );
-
-# Work out the current tab
-foreach my $tab (@tabs) {
- if ($tab->{'name'} eq $current_tab_name) {
- $vars->{'current_tab'} = $tab;
- last;
- }
-}
-
-$vars->{'tabs'} = \@tabs;
+$vars->{'current_tab_name'} = $current_tab_name;
# Do any saving, and then display the current tab.
SWITCH: for ($current_tab_name) {