fix(localisation): translations not loading

This commit is contained in:
grandeljay 2023-10-25 20:05:38 +02:00
parent 37fbf05862
commit f237f09786

View file

@ -34,17 +34,10 @@ spl_autoload_register(
}
);
/**
* Config
*/
$configPath = __DIR__ . '/' . 'src/config/config.php';
if (file_exists($configPath)) {
require $configPath;
}
/**
* Session
*
* Has to be setup first, before anything else, so translations can be loaded.
*/
session_start(
array(
@ -54,6 +47,16 @@ session_start(
$user = User::getCurrent();
/**
* Config
*/
$configPath = __DIR__ . '/' . 'src/config/config.php';
if (file_exists($configPath)) {
require $configPath;
}
/**
* Database
*/