mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[ticket/15253] Fix get contents method
PHPBB3-15253
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user