a ton of $session fixes (thanks to Colin), and a new $session checker, that supposedly, shouldn't be needed now. It can be backed out, however, easily.

This commit is contained in:
Matthew Wilson 2006-01-16 22:45:21 +00:00
parent 5fadc70eac
commit 09483e18c5
208 changed files with 505 additions and 533 deletions

View file

@ -33,7 +33,7 @@ the printableStyleId is used instead of the normal styleId for the page.
=cut
sub www_makePrintable {
my $session = shift;
my $session = shift; use WebGUI; WebGUI::dumpSession($session);
if ($session->form->process("styleId") ne "") {
$session->asset->{_properties}{printableStyleTemplateId} = $session->form->process("styleId");
}
@ -52,7 +52,7 @@ overriding the style without setting a printable style and on a per user basis.
=cut
sub www_setPersonalStyle {
my $session = shift;
my $session = shift; use WebGUI; WebGUI::dumpSession($session);
$session->scratch->set("personalStyleId",$session->form->process("styleId"));
return "";
}
@ -66,7 +66,7 @@ Clears the personalStyleId from the scratch area of the session variable.
=cut
sub www_unsetPersonalStyle {
my $session = shift;
my $session = shift; use WebGUI; WebGUI::dumpSession($session);
$session->scratch->delete("personalStyleId");
return "";
}