mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
fixed connection check in public link of visual consoles
This commit is contained in:
parent
002509500c
commit
6ff11239e4
@ -2024,7 +2024,7 @@ function getServerUrl() {
|
|||||||
server_url = get_php_value("homeurl");
|
server_url = get_php_value("homeurl");
|
||||||
} catch (SyntaxError) {
|
} catch (SyntaxError) {
|
||||||
console.warn("Pandora homeurl cannot be found.");
|
console.warn("Pandora homeurl cannot be found.");
|
||||||
server_url = window.location.origin + "/pandora_console";
|
server_url = $("#hidden-homeurl").val();
|
||||||
}
|
}
|
||||||
return server_url;
|
return server_url;
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,8 @@ require_once $config['homedir'].'/vendor/autoload.php';
|
|||||||
ui_require_css_file('visual_maps');
|
ui_require_css_file('visual_maps');
|
||||||
ui_require_css_file('register');
|
ui_require_css_file('register');
|
||||||
|
|
||||||
|
html_print_input_hidden('homeurl', $config['homeurl']);
|
||||||
|
|
||||||
// Connection lost alert.
|
// Connection lost alert.
|
||||||
$conn_title = __('Connection with server has been lost');
|
$conn_title = __('Connection with server has been lost');
|
||||||
$conn_text = __('Connection to the server has been lost. Please check your internet connection or contact with administrator.');
|
$conn_text = __('Connection to the server has been lost. Please check your internet connection or contact with administrator.');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user