mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged revisions 51477 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.2.0-mesq ........ r51477 | ischommer | 2008-03-20 09:51:02 +1300 (Thu, 20 Mar 2008) | 1 line BUGFIX Can't properly deprecate URL() over getURL(), as it takes priority in ViewableData::__get() (which in turn is used by template accessors like $MyImage.Thumbnail.URL) - returning getURL() instead now ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@51471 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
3014401e11
commit
8d4f0d006f
@ -380,7 +380,7 @@ class Image extends File {
|
||||
* @deprecated
|
||||
*/
|
||||
function URL() {
|
||||
user_error('Image::URL() is deprecated, please use the attribute directly as $myImage->URL.', E_USER_NOTICE);
|
||||
return $this->getURL();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user