fix variable assignment inside of conditional, according to perlcritic
This commit is contained in:
parent
ec3bc19d77
commit
cee13f4a24
1 changed files with 5 additions and 3 deletions
|
|
@ -33,13 +33,15 @@ can be found, an internationalized error message will be returned instead.
|
||||||
No editing controls (toolbar) will be displayed in the Asset output, even if
|
No editing controls (toolbar) will be displayed in the Asset output, even if
|
||||||
Admin is turned on.
|
Admin is turned on.
|
||||||
|
|
||||||
|
The Not Found Page may not be Asset Proxied.
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
sub process {
|
sub process {
|
||||||
my $session = shift;
|
my $session = shift;
|
||||||
my $url = shift;
|
my $url = shift;
|
||||||
my $t = [Time::HiRes::gettimeofday()] if ($session->errorHandler->canShowPerformanceIndicators());
|
my $t = ($session->errorHandler->canShowPerformanceIndicators()) ? [Time::HiRes::gettimeofday()] : undef;
|
||||||
my $asset = WebGUI::Asset->newByUrl($session,$url);
|
my $asset = WebGUI::Asset->newByUrl($session,$url);
|
||||||
#Sorry, you cannot proxy the notfound page.
|
#Sorry, you cannot proxy the notfound page.
|
||||||
if (defined $asset && $asset->getId ne $session->setting->get("notFoundPage")) {
|
if (defined $asset && $asset->getId ne $session->setting->get("notFoundPage")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue