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