]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Storage/Filesystem.php
Insert a `user-contact` for every contact
[friendica.git] / src / Model / Storage / Filesystem.php
index 7760b4a5304b276c9a4fdaaaf1114ec4b241e479..c6c939bd464353154eab1193916cdd2c79ecb1d9 100644 (file)
@@ -36,7 +36,7 @@ use Friendica\Util\Strings;
  * Each new resource gets a value as reference and is saved in a
  * folder tree stucture created from that value.
  */
-class Filesystem implements ISelectableStorage
+class Filesystem implements IWritableStorage
 {
        const NAME = 'Filesystem';
 
@@ -127,10 +127,11 @@ class Filesystem implements ISelectableStorage
 
                $result = file_get_contents($file);
 
-               // just in case the result is REALLY false, not zero or empty or anything else, throw the exception
                if ($result === false) {
                        throw new StorageException(sprintf('Filesystem storage failed to get data to "%s". Check your write permissions', $file));
                }
+
+               return $result;
        }
 
        /**