mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 16:19:06 +01:00
generate_lang_file.php : fix lang files inclusion
This commit is contained in:
parent
bba6466eed
commit
0f2a51a69d
1 changed files with 5 additions and 2 deletions
|
@ -37,9 +37,11 @@ $lang=False;
|
||||||
$encoding=False;
|
$encoding=False;
|
||||||
$translations=array();
|
$translations=array();
|
||||||
if ($argc > 1) {
|
if ($argc > 1) {
|
||||||
|
// Change dir again to manage file input
|
||||||
|
chdir($curdir);
|
||||||
for ($i=1;$i<$argc;$i++) {
|
for ($i=1;$i<$argc;$i++) {
|
||||||
if (is_file($curdir.'/'.$argv[$i])) {
|
if (is_file($argv[$i])) {
|
||||||
@include($curdir.'/'.$argv[$i]);
|
@include($argv[$i]);
|
||||||
foreach($GLOBALS['LSlang'] as $msg => $trans) {
|
foreach($GLOBALS['LSlang'] as $msg => $trans) {
|
||||||
$translations[$msg]=$trans;
|
$translations[$msg]=$trans;
|
||||||
}
|
}
|
||||||
|
@ -73,6 +75,7 @@ if ($argc > 1) {
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
chdir(dirname(__FILE__).'/../');
|
||||||
}
|
}
|
||||||
|
|
||||||
$data=array();
|
$data=array();
|
||||||
|
|
Loading…
Reference in a new issue