mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
fix cleanup + get_user_locale()
This commit is contained in:
@@ -256,7 +256,7 @@ function docleanup($forceAll = 0, $printProgress = false) {
|
||||
global $rootpath;
|
||||
$requestId = nexus()->getRequestId();
|
||||
|
||||
require_once($rootpath . '/lang/_target/lang_cleanup.php');
|
||||
// require_once($rootpath . '/lang/_target/lang_cleanup.php');
|
||||
|
||||
set_time_limit(0);
|
||||
ignore_user_abort(1);
|
||||
|
||||
@@ -1369,7 +1369,7 @@ function convertNamespaceToSnake(string $str): string
|
||||
|
||||
function get_user_locale(int $uid): string
|
||||
{
|
||||
$sql = "select language.site_lang_folder from useers inner join language on users.lang = language.id where users.id = $uid limit 1";
|
||||
$sql = "select language.site_lang_folder from users inner join language on users.lang = language.id where users.id = $uid limit 1";
|
||||
$result = \Nexus\Database\NexusDB::select($sql);
|
||||
if (empty($result) || empty($result[0]['site_lang_folder'])) {
|
||||
return "en";
|
||||
|
||||
Reference in New Issue
Block a user