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

make sure the streamwrappers are registered early

parent 5e9d268c
Branches
No related tags found
No related merge requests found
......@@ -294,6 +294,11 @@ 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" ));
......@@ -346,9 +351,5 @@ if(!function_exists('get_temp_dir')) {
OC::init();
require_once('streamwrappers.php');
// FROM search.php
new OC_Search_Provider_File();
......@@ -218,6 +218,3 @@ class OC_StaticStreamWrapper {
return false;
}
}
stream_wrapper_register("fakedir", "OC_FakeDirStream");
stream_wrapper_register('static', 'OC_StaticStreamWrapper');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment