From 30e0015ca9679bea38295c3590d48a34f93698d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Calvo?= Date: Fri, 14 Jul 2017 13:40:21 +0200 Subject: [PATCH] [ticket/15253] Fix get contents method PHPBB3-15253 --- phpBB/phpbb/storage/adapter/adapter_interface.php | 2 ++ phpBB/phpbb/storage/storage.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/phpBB/phpbb/storage/adapter/adapter_interface.php b/phpBB/phpbb/storage/adapter/adapter_interface.php index 01feb50179..55b2687344 100644 --- a/phpBB/phpbb/storage/adapter/adapter_interface.php +++ b/phpBB/phpbb/storage/adapter/adapter_interface.php @@ -33,6 +33,8 @@ interface adapter_interface * * @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); diff --git a/phpBB/phpbb/storage/storage.php b/phpBB/phpbb/storage/storage.php index 7f0ea4a6dc..91ff7cc5e3 100644 --- a/phpBB/phpbb/storage/storage.php +++ b/phpBB/phpbb/storage/storage.php @@ -32,7 +32,7 @@ class storage public function get_contents($path) { - $this->adapter->put_contents($path); + return $this->adapter->get_contents($path); } public function exists($path)