mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-24 01:32:25 +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)
|
||||
{
|
||||
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