Call $this->extend('updateURL', $url); befor returning $url

This commit is contained in:
Jacob 2017-06-06 13:38:11 +12:00
parent 2305255699
commit 92b7341200

View File

@ -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;
}
/**