fixed not found page problem
This commit is contained in:
parent
5af6eaa085
commit
8dac9d9daa
3 changed files with 21 additions and 14 deletions
|
|
@ -1056,7 +1056,8 @@ sub newByUrl {
|
|||
if ($id ne "" || $class ne "") {
|
||||
return WebGUI::Asset->new($id, $class, $version);
|
||||
} else {
|
||||
return WebGUI::Asset->getNotFound;
|
||||
WebGUI::ErrorHandler::warn("The URL $url was requested, but does not exist in your asset tree.");
|
||||
return undef;
|
||||
}
|
||||
}
|
||||
return WebGUI::Asset->getDefault;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue