BUGFIX: removed deprecated method calls in Image.php

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@93646 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Will Rossiter 2009-11-26 21:23:34 +00:00
parent 62e13fafad
commit 61ee1b906d

View File

@ -106,7 +106,7 @@ class Image extends File {
*/
function getTag() {
if(file_exists(Director::baseFolder()."/".$this->Filename)) {
$url = $this->URL();
$url = $this->getURL();
$title = ($this->Title) ? $this->Title : $this->Filename;
if ($this->Title) {
@ -127,7 +127,7 @@ class Image extends File {
* @return string
*/
function forTemplate() {
return $this->Tag();
return $this->getTag();
}
/**