loading filemanager translations for sharing

This commit is contained in:
Ralf Becker 2020-04-01 10:44:49 +02:00
parent 174737cc67
commit d830e048e4
2 changed files with 13 additions and 0 deletions

View File

@ -257,6 +257,7 @@ if (file_exists(__DIR__.'/../../../filemanager/inc/class.filemanager_ui.inc.php'
*/
protected static function handle_upload_action(string $action, $selected, $dir, $props, &$arr)
{
Api\Translation::add_app('filemanager');
parent::handle_upload_action($action, $selected, $dir, $props, $arr);
$arr['msg'] .= "\n" . lang("The uploaded file is only visible to the person sharing these files with you, not to yourself or other people knowing this sharing link.");
$arr['type'] = 'notice';

View File

@ -475,6 +475,18 @@ if (file_exists(__DIR__.'/../../../filemanager/inc/class.filemanager_ui.inc.php'
class SharingUi extends filemanager_ui
{
/**
* Constructor
*
* Reimplemented to load filemanager translations
*/
function __construct()
{
parent::__construct();
Api\Translation::add_app('filemanager');
}
/**
* Get active view - override so it points to this class
*