diff --git a/index.php b/index.php index a40a8dc7..747dfc7f 100644 --- a/index.php +++ b/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 */