make sure the streamwrappers are registered early

This commit is contained in:
Robin Appelman 2012-02-28 17:24:59 +01:00
parent 5e9d268c21
commit a829ce69c5
2 changed files with 5 additions and 7 deletions

View File

@ -293,6 +293,11 @@ class OC{
if( !OC_Config::getValue( "installed", false )){
$_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();

View File

@ -218,6 +218,3 @@ class OC_StaticStreamWrapper {
return false;
}
}
stream_wrapper_register("fakedir", "OC_FakeDirStream");
stream_wrapper_register('static', 'OC_StaticStreamWrapper');