Changeset View
Changeset View
Standalone View
Standalone View
lib/file_api_core.php
Show First 20 Lines • Show All 273 Lines • ▼ Show 20 Lines | public function capabilities($full = true) | ||||
if ($rcube->config->get('fileapi_backend_storage_disabled')) { | if ($rcube->config->get('fileapi_backend_storage_disabled')) { | ||||
$caps['NOROOT'] = true; | $caps['NOROOT'] = true; | ||||
} | } | ||||
if (!$full) { | if (!$full) { | ||||
return $caps; | return $caps; | ||||
} | } | ||||
if ($caps['MANTICORE']) { | if ($caps['MANTICORE'] ?? false) { | ||||
$manticore = new file_manticore($this); | $manticore = new file_manticore($this); | ||||
$caps['MANTICORE_EDITABLE'] = $manticore->supported_filetypes(true); | $caps['MANTICORE_EDITABLE'] = $manticore->supported_filetypes(true); | ||||
} | } | ||||
if ($caps['WOPI']) { | if ($caps['WOPI'] ?? false) { | ||||
$wopi = new file_wopi($this); | $wopi = new file_wopi($this); | ||||
$caps['WOPI_EDITABLE'] = $wopi->supported_filetypes(true); | $caps['WOPI_EDITABLE'] = $wopi->supported_filetypes(true); | ||||
} | } | ||||
// get capabilities of other drivers | // get capabilities of other drivers | ||||
$drivers = $this->get_drivers(true); | $drivers = $this->get_drivers(true); | ||||
foreach ($drivers as $driver) { | foreach ($drivers as $driver) { | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |