Fix bug : install fails due to the external Javascript

This commit is contained in:
sparkyx 2025-09-10 11:55:44 +02:00
parent aa38745669
commit 370aa33b07
2 changed files with 5 additions and 3 deletions

View file

@ -38,8 +38,10 @@ require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
// for loading javascripts or style-sheet, it is needed to know the user
// global preference, but the user is not yet connected
// to a folder. So the Database is the repository
$g_user=new Noalyss_user(new Database());
set_language();
if ( defined("noalyss_user") || defined("phpcompta_user")) {
$g_user=new Noalyss_user(new Database());
set_language();
}
// load message for javascript
if (isset ($_REQUEST['loadjs']) && $_REQUEST['loadjs']=='message')
{