diff --git a/include/cleanup.php b/include/cleanup.php index fd3b8628..a75f34a4 100644 --- a/include/cleanup.php +++ b/include/cleanup.php @@ -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); diff --git a/include/globalfunctions.php b/include/globalfunctions.php index 1207c9cb..a27cfbb7 100644 --- a/include/globalfunctions.php +++ b/include/globalfunctions.php @@ -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";