Minor improvements

Updated TODO
Enabled preloading
Added defaultPSGI to WebGUI::Paths
Added example of testing site via Plack::Test
This commit is contained in:
Patrick Donelan 2010-04-18 14:51:24 -04:00
parent f99f672b06
commit 5c70ffb3e0
7 changed files with 30 additions and 19 deletions

View file

@ -78,10 +78,7 @@ Returns true if the param is part of the submitted form data, or a URL param.
sub hasParam {
my $self = shift;
my $param = shift;
return undef unless $param;
return undef unless $self->session->request;
my $hashRef = $self->session->request->param();
return exists $hashRef->{$param};
return $param && $self->session->request && exists $self->session->request->parameters->{$param};
}