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);