From 0b0e149618f65b6f05710738fc52a8c55ca3f837 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 3 Dec 2009 00:38:52 +0000 Subject: [PATCH] BUGFIX Fixed undefined calls to URL() in SimpleImageField, replacing them with getURL() instead git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@94301 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/SimpleImageField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forms/SimpleImageField.php b/forms/SimpleImageField.php index 90e1d2fa3..6128a5f4d 100755 --- a/forms/SimpleImageField.php +++ b/forms/SimpleImageField.php @@ -36,9 +36,9 @@ class SimpleImageField extends FileField { if($imageField && $imageField->exists()) { $html .= '
'; if($imageField->hasMethod('Thumbnail') && $imageField->Thumbnail()) { - $html .= "Thumbnail()->URL()."\" />"; + $html .= "Thumbnail()->getURL()."\" />"; } else if($imageField->CMSThumbnail()) { - $html .= "CMSThumbnail()->URL()."\" />"; + $html .= "CMSThumbnail()->getURL()."\" />"; } $html .= '
'; }