Fixed getRoot, getDefault, and getNotFound to pass them a session
This commit is contained in:
parent
6eb252d907
commit
cd45f88e9f
4 changed files with 4 additions and 4 deletions
|
|
@ -584,7 +584,7 @@ sub www_view {
|
|||
return "";
|
||||
} else { # tell em it doesn't exist anymore
|
||||
$self->session->http->setStatus("410");
|
||||
return WebGUI::Asset->getNotFound->www_view;
|
||||
return WebGUI::Asset->getNotFound($self->session)->www_view;
|
||||
}
|
||||
}
|
||||
if ($self->get("encryptPage") && $self->session->env->get("HTTPS") ne "on") {
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ sub view {
|
|||
$children = $self->getLineage(["descendants"],{returnObjects=>1,
|
||||
includeOnlyClasses=>["WebGUI::Asset::Event"]});
|
||||
} elsif ($scope == 1) { #calendar is global
|
||||
$children = WebGUI::Asset::getRoot()->getLineage(["descendants"],{returnObjects=>1,
|
||||
$children = WebGUI::Asset::getRoot($self->session)->getLineage(["descendants"],{returnObjects=>1,
|
||||
includeOnlyClasses=>["WebGUI::Asset::Event"]});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue