aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-07-30 19:57:57 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-07-30 19:57:57 -0400
commit0d3ebbfefdc65a90c78fa49c28eccbd1e0dfb563 (patch)
tree906d2783aca1cd439ae50869b9a240f9d5b68066 /lib/base.php
parent11d162751381963e0c8a86cf15c811cc99003654 (diff)
parent3a08f747fb714731ec1323fc59d3cb7c4784db5e (diff)
downloadnextcloud-server-0d3ebbfefdc65a90c78fa49c28eccbd1e0dfb563.tar.gz
nextcloud-server-0d3ebbfefdc65a90c78fa49c28eccbd1e0dfb563.zip
Merge branch 'master' into sharing
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/base.php b/lib/base.php
index 324713de61c..bbd89e4fdb3 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -87,9 +87,16 @@ if( !OC_Config::getValue( "installed", false )){
$_SESSION['user_id'] = '';
}
+
OC_User::useBackend( OC_Config::getValue( "userbackend", "database" ));
OC_Group::setBackend( OC_Config::getValue( "groupbackend", "database" ));
+// Load Apps
+// This includes plugins for users and filesystems as well
+if(!$error and !$RUNTIME_NOAPPS ){
+ OC_App::loadApps();
+}
+
// Was in required file ... put it here
OC_Filesystem::registerStorageType('local','OC_Filestorage_Local',array('datadir'=>'string'));
require_once('apps/files_sharing/sharedstorage.php');
@@ -107,10 +114,6 @@ OC_Util::addScript( "js" );
OC_Util::addStyle( "jquery-ui-1.8.14.custom" );
OC_Util::addStyle( "styles" );
-// Load Apps
-if(!$error and !$RUNTIME_NOAPPS ){
- OC_App::loadApps();
-}
// FROM Connect.php
function OC_CONNECT_TEST($path,$user,$password){
@@ -200,4 +203,4 @@ if(!function_exists('sys_get_temp_dir')) {
require_once('fakedirstream.php');
// FROM search.php
-new OC_Search_Provider_File(); \ No newline at end of file
+new OC_Search_Provider_File();