including the language files must come after auth in order to user the user's language setting

pull/2905/head
Isaac Connor 2020-02-27 17:42:02 -05:00
parent c880793fdc
commit 17fbafd7de
1 changed files with 4 additions and 1 deletions

View File

@ -153,7 +153,6 @@ if (
}
require_once('includes/lang.php');
# Running is global but only do the daemonCheck if it is actually needed
$running = null;
@ -184,10 +183,14 @@ if ( isset($_REQUEST['request']) )
$request = detaintPath($_REQUEST['request']);
require_once('includes/auth.php');
# Only one request can open the session file at a time, so let's close the session here to improve concurrency.
# Any file/page that sets session variables must re-open it.
session_write_close();
// lang references $user[Language] so must come after auth
require_once('includes/lang.php');
foreach ( getSkinIncludes('skin.php') as $includeFile ) {
require_once $includeFile;
}