fix(localisation): translations not loading
This commit is contained in:
parent
37fbf05862
commit
f237f09786
1 changed files with 12 additions and 9 deletions
21
index.php
21
index.php
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue