From cc721b487c9f00fc681247affd6ac7352ec47dcb Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 4 Jul 2023 11:41:51 +0700 Subject: [PATCH] Minor improvements (#209) * Minor improvements * Update CHANGELOG.md --- CHANGELOG.md | 2 +- admin/admin_log.php | 4 ++-- library/includes/cron/cron_init.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 217e331f..5acdacbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ - Corrected translations [\#183](https://github.com/torrentpier/torrentpier-lts/pull/183) ([belomaxorka](https://github.com/belomaxorka)) - Fixed $bb_cfg['pm_days_keep'] [\#180](https://github.com/torrentpier/torrentpier-lts/pull/180) ([belomaxorka](https://github.com/belomaxorka)) - IP storage bugfix [\#177](https://github.com/torrentpier/torrentpier-lts/pull/177) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#172](https://github.com/torrentpier/torrentpier-lts/pull/172), [\#175](https://github.com/torrentpier/torrentpier-lts/pull/175), [\#176](https://github.com/torrentpier/torrentpier-lts/pull/176), [\#178](https://github.com/torrentpier/torrentpier-lts/pull/178), [\#179](https://github.com/torrentpier/torrentpier-lts/pull/179), [\#181](https://github.com/torrentpier/torrentpier-lts/pull/181), [\#187](https://github.com/torrentpier/torrentpier-lts/pull/187), [\#192](https://github.com/torrentpier/torrentpier-lts/pull/192), [\#194](https://github.com/torrentpier/torrentpier-lts/pull/194), [\#195](https://github.com/torrentpier/torrentpier-lts/pull/195), [\#199](https://github.com/torrentpier/torrentpier-lts/pull/199), [\#200](https://github.com/torrentpier/torrentpier-lts/pull/200), [\#201](https://github.com/torrentpier/torrentpier-lts/pull/201), [\#208](https://github.com/torrentpier/torrentpier-lts/pull/208) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#172](https://github.com/torrentpier/torrentpier-lts/pull/172), [\#175](https://github.com/torrentpier/torrentpier-lts/pull/175), [\#176](https://github.com/torrentpier/torrentpier-lts/pull/176), [\#178](https://github.com/torrentpier/torrentpier-lts/pull/178), [\#179](https://github.com/torrentpier/torrentpier-lts/pull/179), [\#181](https://github.com/torrentpier/torrentpier-lts/pull/181), [\#187](https://github.com/torrentpier/torrentpier-lts/pull/187), [\#192](https://github.com/torrentpier/torrentpier-lts/pull/192), [\#194](https://github.com/torrentpier/torrentpier-lts/pull/194), [\#195](https://github.com/torrentpier/torrentpier-lts/pull/195), [\#199](https://github.com/torrentpier/torrentpier-lts/pull/199), [\#200](https://github.com/torrentpier/torrentpier-lts/pull/200), [\#201](https://github.com/torrentpier/torrentpier-lts/pull/201), [\#208](https://github.com/torrentpier/torrentpier-lts/pull/208), [\#209](https://github.com/torrentpier/torrentpier-lts/pull/209) ([belomaxorka](https://github.com/belomaxorka)) - Fixed empty user search box [\#171](https://github.com/torrentpier/torrentpier-lts/pull/171) ([belomaxorka](https://github.com/belomaxorka)) - Added some placeholders for input fields [\#173](https://github.com/torrentpier/torrentpier-lts/pull/173) ([belomaxorka](https://github.com/belomaxorka)) diff --git a/admin/admin_log.php b/admin/admin_log.php index 5331a38e..26b4e10e 100644 --- a/admin/admin_log.php +++ b/admin/admin_log.php @@ -326,7 +326,7 @@ if ($log_rowset) 'TOPIC_HREF_NEW_S' => url_arg($url, $topic_key, $row['log_topic_id_new']), 'TOPIC_TITLE_NEW' => $topic_title_new, - 'DATE' => bb_date($row['log_time'], 'd-M-Y', false), + 'DATE' => bb_date($row['log_time'], 'd-M-y'), 'TIME' => bb_date($row['log_time'], 'H:i'), 'DATETIME_HREF_S' => $datetime_href_s, 'MSG' => $msg, @@ -410,4 +410,4 @@ $template->assign_vars(array( 'TOPIC_CSV' => $topic_csv, )); -print_page('admin_log.tpl', 'admin'); \ No newline at end of file +print_page('admin_log.tpl', 'admin'); diff --git a/library/includes/cron/cron_init.php b/library/includes/cron/cron_init.php index 32c8bc94..db00e627 100644 --- a/library/includes/cron/cron_init.php +++ b/library/includes/cron/cron_init.php @@ -13,7 +13,7 @@ function cron_get_file_lock () { # bb_log(date('H:i:s - ') . getmypid() .' -x-- FILE-LOCK try'. LOG_LF, CRON_LOG_DIR .'cron_check'); - $lock_obtained = @rename(CRON_ALLOWED, CRON_RUNNING); + $lock_obtained = rename(CRON_ALLOWED, CRON_RUNNING); } elseif (file_exists(CRON_RUNNING)) { @@ -22,7 +22,7 @@ function cron_get_file_lock () elseif (!file_exists(CRON_ALLOWED) && !file_exists(CRON_RUNNING)) { file_write('', CRON_ALLOWED); - $lock_obtained = @rename(CRON_ALLOWED, CRON_RUNNING); + $lock_obtained = rename(CRON_ALLOWED, CRON_RUNNING); } return $lock_obtained; @@ -74,4 +74,4 @@ if (cron_get_file_lock()) if (defined('IN_CRON')) { bb_log(date('H:i:s - ') . getmypid() .' --x- ALL jobs FINISHED *************************************************'. LOG_LF, CRON_LOG_DIR .'cron_check'); -} \ No newline at end of file +}