non-existant warning method changed to the proper warn method
This commit is contained in:
parent
6a5a62c1cf
commit
412dee2a8f
1 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ sub _createThumbnail {
|
|||
} else {
|
||||
$error = $image->Write($_[0]->{_node}->getPath.'/thumb-'.$_[0]->getFilename);
|
||||
}
|
||||
WebGUI::ErrorHandler::warning("Couldn't create thumbnail: ".$error) if $error;
|
||||
WebGUI::ErrorHandler::warn("Couldn't create thumbnail: ".$error) if $error;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -101,7 +101,7 @@ sub _resizeImage {
|
|||
$r = $x>$y ? $x / $n : $y / $n;
|
||||
$image->Scale(width=>($x/$r),height=>($y/$r));
|
||||
$error = $image->Write($_[0]->getPath);
|
||||
WebGUI::ErrorHandler::warning("Couldn't resize image: ".$error) if $error;
|
||||
WebGUI::ErrorHandler::warn("Couldn't resize image: ".$error) if $error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue