From 99496669268792c0e474ba0695c227fae8b0a191 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Fri, 6 Aug 2010 16:57:25 -0500 Subject: [PATCH] temporary fix to the getToolbar problem Later we should make getToolbar add the toolbar in a hidden state. The Admin Console JS can unhide it. --- lib/WebGUI/Admin.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/WebGUI/Admin.pm b/lib/WebGUI/Admin.pm index c23551b59..84447a6f1 100644 --- a/lib/WebGUI/Admin.pm +++ b/lib/WebGUI/Admin.pm @@ -463,6 +463,9 @@ sub www_view { my $var; $var->{backToSiteUrl} = $url->page; + # temporary! We are now in admin mode! + $session->var->switchAdminOn; + # Add vars for AdminBar $var->{adminPlugins} = $self->getAdminPluginTemplateVars; $var->{newContentTabs} = $self->getNewContentTemplateVars;