mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-24 09:42:43 +01:00
Update Page::file()
method using Files::get()
This commit is contained in:
parent
cc644845eb
commit
93f8416806
@ -325,7 +325,7 @@ class Page extends AbstractPage
|
|||||||
*/
|
*/
|
||||||
public function file($file)
|
public function file($file)
|
||||||
{
|
{
|
||||||
return $this->files()->has($file) ? substr($this->path() . $file, strlen(ROOT_PATH)) : null;
|
return $this->files()->has($file) ? substr($this->files()->get($file)->path(), strlen(ROOT_PATH)) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user