mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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() {
|
function getTag() {
|
||||||
if(file_exists(Director::baseFolder()."/".$this->Filename)) {
|
if(file_exists(Director::baseFolder()."/".$this->Filename)) {
|
||||||
$url = $this->URL();
|
$url = $this->getURL();
|
||||||
$title = ($this->Title) ? $this->Title : $this->Filename;
|
$title = ($this->Title) ? $this->Title : $this->Filename;
|
||||||
|
|
||||||
if ($this->Title) {
|
if ($this->Title) {
|
||||||
@ -127,7 +127,7 @@ class Image extends File {
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function forTemplate() {
|
function forTemplate() {
|
||||||
return $this->Tag();
|
return $this->getTag();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user