Revert "refactor global array"

This reverts commit 370ccbdb74.
This commit is contained in:
Michael Kaufmann
2018-12-22 08:15:31 +01:00
parent c800e89414
commit 7e39a7bc60
220 changed files with 2244 additions and 2227 deletions

View File

@@ -381,6 +381,8 @@ class FileDir
*/
public static function makePathfield($path, $uid, $gid, $value = '', $dom = false)
{
global $lng;
$value = str_replace($path, '', $value);
$field = array();
@@ -427,20 +429,20 @@ class FileDir
// remove starting slash we added
// for the Dropdown, #225
$value = substr($value, 1);
// $field = \Froxlor\I18N\Lang::getAll()['panel']['toomanydirs'];
// $field = $lng['panel']['toomanydirs'];
$field = array(
'type' => 'text',
'value' => htmlspecialchars($value),
'note' => \Froxlor\I18N\Lang::getAll()['panel']['toomanydirs']
'note' => $lng['panel']['toomanydirs']
);
}
} else {
// $field = \Froxlor\I18N\Lang::getAll()['panel']['dirsmissing'];
// $field = $lng['panel']['dirsmissing'];
// $field = '<input type="hidden" name="path" value="/" />';
$field = array(
'type' => 'hidden',
'value' => '/',
'note' => \Froxlor\I18N\Lang::getAll()['panel']['dirsmissing']
'note' => $lng['panel']['dirsmissing']
);
}
}