From 95300fdb17f80161bd583f4c5329edf9b19766a0 Mon Sep 17 00:00:00 2001 From: Frank Dillon Date: Mon, 17 Nov 2008 03:58:31 +0000 Subject: [PATCH] fixed a corner case where template variables could overlap. --- lib/WebGUI/Account.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/WebGUI/Account.pm b/lib/WebGUI/Account.pm index 8a406310b..14ff0fa11 100644 --- a/lib/WebGUI/Account.pm +++ b/lib/WebGUI/Account.pm @@ -259,13 +259,13 @@ sub displayContent { $hash{'url' } = $instance->getUrl("module=$identifier",1); $hash{'isActive' } = "true" if($identifier eq $self->module); WebGUI::Macro::process(\$hash{'title'}); - push(@pluggins,\%hash); - - #Append common display variables to the main template - $instance->appendCommonVars($var); + push(@pluggins,\%hash); } $var->{'account_loop'} = \@pluggins; + #Append common display variables to the layout template + $self->appendCommonVars($var); + #Process the layout template my $output = $self->processTemplate($var,$self->getLayoutTemplateId);