Skip to content

Commit

Permalink
[ticket/15253] Fix get contents method
Browse files Browse the repository at this point in the history
PHPBB3-15253
  • Loading branch information
rubencm committed Jul 20, 2017
1 parent 01a28d0 commit 30e0015
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions phpBB/phpbb/storage/adapter/adapter_interface.php
Expand Up @@ -33,6 +33,8 @@ public function put_contents($path, $content);
*
* @throws \phpbb\storage\exception\exception When the file dont exists
* When cannot read file contents
* @return string Returns file contents
*
*/
public function get_contents($path);

Expand Down
2 changes: 1 addition & 1 deletion phpBB/phpbb/storage/storage.php
Expand Up @@ -32,7 +32,7 @@ public function put_contents($path, $content)

public function get_contents($path)
{
$this->adapter->put_contents($path);
return $this->adapter->get_contents($path);
}

public function exists($path)
Expand Down

0 comments on commit 30e0015

Please sign in to comment.