From acca7893e86cda38a3969c3009505d086da7bb92 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 22 Oct 2013 17:41:54 -0700 Subject: move killme inside module function so that typo works --- mod/cloud.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/cloud.php') diff --git a/mod/cloud.php b/mod/cloud.php index 7725d5a2f..cdd926444 100644 --- a/mod/cloud.php +++ b/mod/cloud.php @@ -16,8 +16,6 @@ // This interface does not yet support Red stored files. Consider any content in your "store" // directory to be throw-away until advised otherwise. - if(! get_config('system','enable_cloud')) - killme(); use Sabre\DAV; @@ -86,6 +84,8 @@ class RedBasicAuth extends Sabre\DAV\Auth\Backend\AbstractBasic { function cloud_init() { + if(! get_config('system','enable_cloud')) + killme(); $rootDirectory = new DAV\FS\Directory('store'); $server = new DAV\Server($rootDirectory); -- cgit v1.2.3