public static function init($user, $root) { if (self::$defaultInstance) { return false; } self::getLoader(); self::$defaultInstance = new View($root); if (!self::$mounts) { self::$mounts = \OC::$server->getMountManager(); } //load custom mount config self::initMountPoints($user); self::$loaded = true; return true; }
public static function init($user, $root) { if (self::$defaultInstance) { return false; } self::$defaultInstance = new View($root); //load custom mount config self::initMountPoints($user); self::$loaded = true; return true; }