mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-24 19:09:06 +01:00
Fix base URL when public root URL is set to "/"
This commit is contained in:
parent
efecc67af0
commit
24d76d6c9c
1 changed files with 3 additions and 1 deletions
|
@ -198,7 +198,9 @@ class LStemplate extends LSlog_staticLoggerClass {
|
|||
self :: registerFunction("var_dump", "LStemplate_smarty_var_dump");
|
||||
|
||||
// Define public root URL
|
||||
self :: assign('public_root_url', LSsession :: loadLSclass("LSurl") ? LSurl :: public_url() : null);
|
||||
$public_root_url = LSsession :: loadLSclass("LSurl") ? LSurl :: public_url() : null;
|
||||
// A trailing slash is appended by the template, handle special case of "/" root URL
|
||||
self :: assign('public_root_url', $public_root_url == "/"?"":$public_root_url);
|
||||
|
||||
// Trigger started event
|
||||
self :: fireEvent('started');
|
||||
|
|
Loading…
Reference in a new issue