From 412dee2a8f5b34e4f6fea3214f956a5aecfd00f4 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Thu, 12 Sep 2002 01:12:13 +0000 Subject: [PATCH] non-existant warning method changed to the proper warn method --- lib/WebGUI/Attachment.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Attachment.pm b/lib/WebGUI/Attachment.pm index 7531a0df4..bc7bc3239 100644 --- a/lib/WebGUI/Attachment.pm +++ b/lib/WebGUI/Attachment.pm @@ -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; } } }