Create OC_Router in OC::init

This commit is contained in:
Bart Visscher 2012-07-30 20:50:32 +02:00
parent 9e80f0954d
commit 3e8b6e816a
1 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,10 @@ class OC{
* requested file of app * requested file of app
*/ */
public static $REQUESTEDFILE = ''; public static $REQUESTEDFILE = '';
/*
* OC router
*/
public static $router = null;
/** /**
* check if owncloud runs in cli mode * check if owncloud runs in cli mode
*/ */
@ -354,6 +358,8 @@ class OC{
OC_User::useBackend(new OC_User_Database()); OC_User::useBackend(new OC_User_Database());
OC_Group::useBackend(new OC_Group_Database()); OC_Group::useBackend(new OC_Group_Database());
OC::$router = new OC_Router();
// Load Apps // Load Apps
// This includes plugins for users and filesystems as well // This includes plugins for users and filesystems as well
global $RUNTIME_NOAPPS; global $RUNTIME_NOAPPS;