mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Add updateURL
extension hook to File::getURL
This commit is contained in:
parent
035a9b049e
commit
2305255699
@ -719,7 +719,8 @@ class File extends DataObject {
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getURL() {
|
public function getURL() {
|
||||||
return Controller::join_links(Director::baseURL(), $this->getFilename());
|
$url = Controller::join_links(Director::baseURL(), $this->getFilename());
|
||||||
|
return $this->extend('updateURL', $url);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user