mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
generate_lang_file.php : initialize LSsession before parsing for messages
This commit is contained in:
parent
12f71e0303
commit
5ec0f7d210
1 changed files with 9 additions and 3 deletions
|
@ -66,6 +66,12 @@ function add($msg) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Change directory
|
||||||
|
chdir('../');
|
||||||
|
|
||||||
|
// Initialize session
|
||||||
|
LSsession :: initialize();
|
||||||
|
|
||||||
// LDAP Servers
|
// LDAP Servers
|
||||||
foreach($GLOBALS['LSconfig']['ldap_servers'] as $conf) {
|
foreach($GLOBALS['LSconfig']['ldap_servers'] as $conf) {
|
||||||
add($conf['name']);
|
add($conf['name']);
|
||||||
|
@ -85,7 +91,7 @@ foreach($GLOBALS['LSconfig']['ldap_servers'] as $conf) {
|
||||||
|
|
||||||
|
|
||||||
// LSobject
|
// LSobject
|
||||||
if (loadDir('../'.LS_OBJECTS_DIR) && loadDir('../'.LS_LOCAL_DIR.LS_OBJECTS_DIR)) {
|
if (loadDir(LS_OBJECTS_DIR) && loadDir(LS_LOCAL_DIR.LS_OBJECTS_DIR)) {
|
||||||
foreach($GLOBALS['LSobjects'] as $name => $conf) {
|
foreach($GLOBALS['LSobjects'] as $name => $conf) {
|
||||||
add($conf['label']);
|
add($conf['label']);
|
||||||
|
|
||||||
|
@ -218,8 +224,8 @@ function find_and_parse_template_file($dir) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
find_and_parse_template_file('../'.LS_TEMPLATES_DIR);
|
find_and_parse_template_file(LS_TEMPLATES_DIR);
|
||||||
find_and_parse_template_file('../'.LS_LOCAL_DIR.LS_TEMPLATES_DIR);
|
find_and_parse_template_file(LS_LOCAL_DIR.LS_TEMPLATES_DIR);
|
||||||
|
|
||||||
|
|
||||||
ksort($data);
|
ksort($data);
|
||||||
|
|
Loading…
Reference in a new issue