mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Minor improvements
This commit is contained in:
parent
4a076a09cc
commit
ea54f2c6ba
3 changed files with 3 additions and 3 deletions
|
@ -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']));
|
||||
|
|
|
@ -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&uid=' . $row['user_id'] . '" target="_blank">' . $row['user_posts'] ?: 0 . '</a>';
|
||||
|
|
|
@ -22,7 +22,7 @@ class CronHelper
|
|||
*/
|
||||
public static function isEnabled(): bool
|
||||
{
|
||||
return env('APP_CRON_ENABLED', true);
|
||||
return env('APP_CRON_ENABLED');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue