[ticket/15276] Fix file_info errors

PHPBB3-15276
This commit is contained in:
Rubén Calvo 2017-08-08 12:32:23 +02:00
parent 9e018e7c12
commit 006990f1d0

View file

@ -43,7 +43,7 @@ class file_info
public function get($name) public function get($name)
{ {
$this->fill_properties(); $this->fill_properties($this->path);
if (!isset($this->properties[$name])) if (!isset($this->properties[$name]))
{ {
@ -52,7 +52,7 @@ class file_info
throw new not_implemented(); throw new not_implemented();
} }
$this->properties[$name] = call_user_func($this->adapter, 'file_' . $name); $this->properties[$name] = call_user_func([$this->adapter, 'file_' . $name], $this->path);
} }
return $this->properties[$name]; return $this->properties[$name];