fixed alan ritari's patch

This commit is contained in:
JT Smith 2004-08-12 14:29:45 +00:00
parent f7be9a0874
commit d1c319bdb1
3 changed files with 2 additions and 11 deletions

View file

@ -176,14 +176,7 @@ sub page {
}
$cache->set($output, $ttl) if ($useCache);
}
my $httpHeader;
# allow a wobject to force a redirect by setting {page}{redirectURL}
if ($session{'page'}{'redirectURL'}) {
$httpHeader = WebGUI::Session::httpRedirect(WebGUI::Macro::process($session{'page'}{'redirectURL'}));
} else {
$httpHeader = WebGUI::HTTP::getHeader();
}
my $httpHeader = WebGUI::HTTP::getHeader();
# This allows an operation or wobject to write directly to the browser.
if ($session{page}{empty}) {