including the language files must come after auth in order to user the user's language setting
parent
c880793fdc
commit
17fbafd7de
|
@ -153,7 +153,6 @@ if (
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
require_once('includes/lang.php');
|
|
||||||
|
|
||||||
# Running is global but only do the daemonCheck if it is actually needed
|
# Running is global but only do the daemonCheck if it is actually needed
|
||||||
$running = null;
|
$running = null;
|
||||||
|
@ -184,10 +183,14 @@ if ( isset($_REQUEST['request']) )
|
||||||
$request = detaintPath($_REQUEST['request']);
|
$request = detaintPath($_REQUEST['request']);
|
||||||
|
|
||||||
require_once('includes/auth.php');
|
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.
|
# 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.
|
# Any file/page that sets session variables must re-open it.
|
||||||
session_write_close();
|
session_write_close();
|
||||||
|
|
||||||
|
// lang references $user[Language] so must come after auth
|
||||||
|
require_once('includes/lang.php');
|
||||||
|
|
||||||
foreach ( getSkinIncludes('skin.php') as $includeFile ) {
|
foreach ( getSkinIncludes('skin.php') as $includeFile ) {
|
||||||
require_once $includeFile;
|
require_once $includeFile;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue