Set current app to filemanager so js loads correctly

This commit is contained in:
nathangray 2018-07-18 12:27:27 -06:00
parent 675f0e2998
commit 8092e1fb86

View File

@ -175,6 +175,7 @@ class Sharing extends \EGroupware\Api\Sharing
$GLOBALS['egw_info']['user']['preferences']['filemanager']['nm_view'] = 'tile'; $GLOBALS['egw_info']['user']['preferences']['filemanager']['nm_view'] = 'tile';
$_GET['cd'] = 'no'; $_GET['cd'] = 'no';
$GLOBALS['egw_info']['flags']['js_link_registry'] = true; $GLOBALS['egw_info']['flags']['js_link_registry'] = true;
$GLOBALS['egw_info']['flags']['currentapp'] = 'filemanager';
Api\Framework::includeCSS('filemanager', 'sharing'); Api\Framework::includeCSS('filemanager', 'sharing');
$ui = new SharingUi(); $ui = new SharingUi();
$ui->index(); $ui->index();