mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
fixed error filemanager
Former-commit-id: 4bd54ef9c60396822a1a757bc91218b4d2244efa
This commit is contained in:
parent
04c4162419
commit
df88582982
@ -126,6 +126,12 @@ if (isset($config['homedir_filemanager'])) {
|
||||
$homedir_filemanager = $config['homedir'];
|
||||
}
|
||||
|
||||
$sec2 = get_parameter('sec2');
|
||||
if ($sec2 == 'enterprise/godmode/agentes/collections') {
|
||||
$homedir_filemanager .= '/attachment/collection/';
|
||||
}
|
||||
|
||||
|
||||
$upload_file_or_zip = (bool) get_parameter('upload_file_or_zip');
|
||||
|
||||
if ($upload_file_or_zip) {
|
||||
@ -499,12 +505,6 @@ function filemanager_file_explorer(
|
||||
$homedir_filemanager = $config['homedir'];
|
||||
}
|
||||
|
||||
unset($config['homedir_filemanager']);
|
||||
config_update_value(
|
||||
'homedir_filemanager',
|
||||
$homedir_filemanager
|
||||
);
|
||||
|
||||
$hack_metaconsole = '';
|
||||
if (defined('METACONSOLE')) {
|
||||
$hack_metaconsole = '../../';
|
||||
@ -938,4 +938,3 @@ function filemanager_list_dir($dirpath)
|
||||
|
||||
return array_merge($dirs, $files);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user