mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/15253] Fix get contents method
PHPBB3-15253
This commit is contained in:
parent
01a28d0bd4
commit
30e0015ca9
2 changed files with 3 additions and 1 deletions
|
@ -33,6 +33,8 @@ interface adapter_interface
|
||||||
*
|
*
|
||||||
* @throws \phpbb\storage\exception\exception When the file dont exists
|
* @throws \phpbb\storage\exception\exception When the file dont exists
|
||||||
* When cannot read file contents
|
* When cannot read file contents
|
||||||
|
* @return string Returns file contents
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
public function get_contents($path);
|
public function get_contents($path);
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ class storage
|
||||||
|
|
||||||
public function get_contents($path)
|
public function get_contents($path)
|
||||||
{
|
{
|
||||||
$this->adapter->put_contents($path);
|
return $this->adapter->get_contents($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function exists($path)
|
public function exists($path)
|
||||||
|
|
Loading…
Add table
Reference in a new issue