/OC/Server has created too early causing issues with config operations as OC:$SERVERPATH was not yet initialized

This fixes unit test execution
This commit is contained in:
Thomas Müller 2013-09-15 23:07:18 +02:00
parent af0069bf03
commit 5d4e9e0d25
1 changed files with 3 additions and 3 deletions

View File

@ -376,9 +376,6 @@ class OC {
self::$loader->registerPrefix('Patchwork', '3rdparty');
spl_autoload_register(array(self::$loader, 'load'));
// setup the basic server
self::$server = new \OC\Server();
// set some stuff
//ob_start();
error_reporting(E_ALL | E_STRICT);
@ -458,6 +455,9 @@ class OC {
stream_wrapper_register('quota', 'OC\Files\Stream\Quota');
stream_wrapper_register('oc', 'OC\Files\Stream\OC');
// setup the basic server
self::$server = new \OC\Server();
self::initTemplateEngine();
if (!self::$CLI) {
self::initSession();