move killme inside module function so that typo works
This commit is contained in:
parent
985d8091ad
commit
acca7893e8
@ -16,8 +16,6 @@
|
|||||||
// This interface does not yet support Red stored files. Consider any content in your "store"
|
// This interface does not yet support Red stored files. Consider any content in your "store"
|
||||||
// directory to be throw-away until advised otherwise.
|
// directory to be throw-away until advised otherwise.
|
||||||
|
|
||||||
if(! get_config('system','enable_cloud'))
|
|
||||||
killme();
|
|
||||||
|
|
||||||
|
|
||||||
use Sabre\DAV;
|
use Sabre\DAV;
|
||||||
@ -86,6 +84,8 @@ class RedBasicAuth extends Sabre\DAV\Auth\Backend\AbstractBasic {
|
|||||||
|
|
||||||
function cloud_init() {
|
function cloud_init() {
|
||||||
|
|
||||||
|
if(! get_config('system','enable_cloud'))
|
||||||
|
killme();
|
||||||
|
|
||||||
$rootDirectory = new DAV\FS\Directory('store');
|
$rootDirectory = new DAV\FS\Directory('store');
|
||||||
$server = new DAV\Server($rootDirectory);
|
$server = new DAV\Server($rootDirectory);
|
||||||
|
Reference in New Issue
Block a user