Permalink
Browse files

BUGFIX Fixed undefined calls to URL() in SimpleImageField, replacing …

…them with getURL() instead (from r94301)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@95594 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
halkyon committed Dec 16, 2009
1 parent bf9358e commit f7dfa4d2bc8ad80a0ec6b8e8c0a18590866a7e3f
Showing with 2 additions and 2 deletions.
  1. +2 −2 forms/SimpleImageField.php
@@ -36,9 +36,9 @@ function Field() {
if($imageField && $imageField->exists()) {
$html .= '<div class="thumbnail">';
if($imageField->hasMethod('Thumbnail') && $imageField->Thumbnail()) {
- $html .= "<img src=\"".$imageField->Thumbnail()->URL()."\" />";
+ $html .= "<img src=\"".$imageField->Thumbnail()->getURL()."\" />";
} else if($imageField->CMSThumbnail()) {
- $html .= "<img src=\"".$imageField->CMSThumbnail()->URL()."\" />";
+ $html .= "<img src=\"".$imageField->CMSThumbnail()->getURL()."\" />";
}
$html .= '</div>';
}

0 comments on commit f7dfa4d

Please sign in to comment.