non-existant warning method changed to the proper warn method

This commit is contained in:
JT Smith 2002-09-12 01:12:13 +00:00
parent 6a5a62c1cf
commit 412dee2a8f

View file

@ -83,7 +83,7 @@ sub _createThumbnail {
} else { } else {
$error = $image->Write($_[0]->{_node}->getPath.'/thumb-'.$_[0]->getFilename); $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; $r = $x>$y ? $x / $n : $y / $n;
$image->Scale(width=>($x/$r),height=>($y/$r)); $image->Scale(width=>($x/$r),height=>($y/$r));
$error = $image->Write($_[0]->getPath); $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;
} }
} }
} }