Minor improvements

This commit is contained in:
Roman Kelesidis 2025-01-01 14:14:13 +07:00
commit ea54f2c6ba
3 changed files with 3 additions and 3 deletions

View file

@ -362,7 +362,7 @@ function version_code(string $version): int
* Some shared defines
*/
// Initialize demo mode
define('IN_DEMO_MODE', env('APP_DEMO_MODE', false));
define('IN_DEMO_MODE', env('APP_DEMO_MODE'));
// Version code
define('VERSION_CODE', version_code($bb_cfg['tp_version']));

View file

@ -792,7 +792,7 @@ function generate_user_info($row, bool $have_auth = IS_ADMIN): array
{
global $userdata, $lang, $images, $bb_cfg;
$from = !empty($row['user_from']) ? render_flag($row['user_from']) : $lang['NOSELECT'];
$from = !empty($row['user_from']) ? render_flag($row['user_from'], false) : $lang['NOSELECT'];
$joined = bb_date($row['user_regdate'], 'Y-m-d H:i', false);
$user_time = !empty($row['user_time']) ? sprintf('%s <span class="signature">(%s)</span>', bb_date($row['user_time']), delta_time($row['user_time'])) : $lang['NOSELECT'];
$posts = '<a href="search.php?search_author=1&amp;uid=' . $row['user_id'] . '" target="_blank">' . $row['user_posts'] ?: 0 . '</a>';

View file

@ -22,7 +22,7 @@ class CronHelper
*/
public static function isEnabled(): bool
{
return env('APP_CRON_ENABLED', true);
return env('APP_CRON_ENABLED');
}
/**