Make sure we have default registered link if there's no Collabora

This commit is contained in:
Hadi Nategh 2017-11-03 16:35:34 +01:00
parent 601f15527b
commit 8d10866706

View File

@ -311,8 +311,10 @@ class filemanager_hooks
);
foreach ($implemented as $app)
{
$link = Api\Hooks::process('filemanager-editor-link', $app);
$link = $link[$app];
if (($l = Api\Hooks::process('filemanager-editor-link')) && $l[$app])
{
$link = $l[$app];
}
if ($app == 'collabora') break; // collabora is default
}
return $link;