Skip to content
Snippets Groups Projects
Commit 6ecbaf00 authored by Robin Appelman's avatar Robin Appelman
Browse files

load streamwrappers earlier

parent 0b460732
Branches
No related tags found
No related merge requests found
......@@ -144,6 +144,11 @@ class OC{
$_SERVER['PHP_AUTH_PW'] = strip_tags($password);
}
// register the stream wrappers
require_once('streamwrappers.php');
stream_wrapper_register("fakedir", "OC_FakeDirStream");
stream_wrapper_register('static', 'OC_StaticStreamWrapper');
// calculate the documentroot
OC::$DOCUMENTROOT=realpath($_SERVER['DOCUMENT_ROOT']);
OC::$SERVERROOT=str_replace("\\",'/',substr(__FILE__,0,-13));
......@@ -297,10 +302,6 @@ class OC{
$_SESSION['user_id'] = '';
}
// register the stream wrappers
require_once('streamwrappers.php');
stream_wrapper_register("fakedir", "OC_FakeDirStream");
stream_wrapper_register('static', 'OC_StaticStreamWrapper');
OC_User::useBackend( OC_Config::getValue( "userbackend", "database" ));
OC_Group::setBackend( OC_Config::getValue( "groupbackend", "database" ));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment