mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
62e13fafad
commit
61ee1b906d
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user