mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
loading filemanager translations for sharing
This commit is contained in:
parent
174737cc67
commit
d830e048e4
@ -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';
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user