Move registering shared storage out of base
This commit is contained in:
parent
57ca70e27c
commit
ddfc9fc001
|
@ -1,7 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once('apps/files_sharing/lib_share.php');
|
require_once('apps/files_sharing/lib_share.php');
|
||||||
|
require_once('apps/files_sharing/sharedstorage.php');
|
||||||
|
|
||||||
|
OC_Filesystem::registerStorageType("shared", "OC_Filestorage_Shared", array("datadir"=>"string"));
|
||||||
OC_Util::addScript("files_sharing", "share");
|
OC_Util::addScript("files_sharing", "share");
|
||||||
OC_App::addNavigationSubEntry("files_index", array(
|
OC_App::addNavigationSubEntry("files_index", array(
|
||||||
"id" => "files_sharing_list",
|
"id" => "files_sharing_list",
|
||||||
|
|
|
@ -107,8 +107,6 @@ if(!$error and !$RUNTIME_NOAPPS ){
|
||||||
|
|
||||||
// Was in required file ... put it here
|
// Was in required file ... put it here
|
||||||
OC_Filesystem::registerStorageType('local','OC_Filestorage_Local',array('datadir'=>'string'));
|
OC_Filesystem::registerStorageType('local','OC_Filestorage_Local',array('datadir'=>'string'));
|
||||||
require_once('apps/files_sharing/sharedstorage.php');
|
|
||||||
OC_Filesystem::registerStorageType('shared','OC_Filestorage_Shared',array('datadir'=>'string'));
|
|
||||||
|
|
||||||
// Set up file system unless forbidden
|
// Set up file system unless forbidden
|
||||||
if(!$error and !$RUNTIME_NOSETUPFS ){
|
if(!$error and !$RUNTIME_NOSETUPFS ){
|
||||||
|
|
Loading…
Reference in New Issue