From c555d20cc978a85a2fed36cd0c6f370fafaee38b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dark=E2=9D=B6?= <25451052+Dark1z@users.noreply.github.com> Date: Fri, 1 Oct 2021 22:59:46 +0530 Subject: [PATCH 1/3] Fix RSI v1.0.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dark❶ <25451052+Dark1z@users.noreply.github.com> --- adm/style/dark1_rsi_acp_style.css | 5 ----- composer.json | 4 ++-- cron/auto_reduce_sync.php | 4 ++-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/adm/style/dark1_rsi_acp_style.css b/adm/style/dark1_rsi_acp_style.css index 65774ad..8b09488 100644 --- a/adm/style/dark1_rsi_acp_style.css +++ b/adm/style/dark1_rsi_acp_style.css @@ -13,8 +13,3 @@ margin: 5px 0px 0px 0px; padding: 5px 0px 0px 0px; } - -/* ACP RSI Cron Run Done */ -.acp-rsi-crdn { - color: lime; -} diff --git a/composer.json b/composer.json index e66c175..fd353fe 100644 --- a/composer.json +++ b/composer.json @@ -3,8 +3,8 @@ "type": "phpbb-extension", "description": "Reduce Search Index [RSI]", "homepage": "https://phpbb.com/customise/db/extension/reduce_search_index", - "version": "1.0.4", - "time": "2021-07-30", + "version": "1.0.5", + "time": "2021-10-01", "keywords": [ "phpbb", "extension", diff --git a/cron/auto_reduce_sync.php b/cron/auto_reduce_sync.php index d93208c..d435ff7 100644 --- a/cron/auto_reduce_sync.php +++ b/cron/auto_reduce_sync.php @@ -85,7 +85,7 @@ public function __construct(config $config, db_driver $db, log $phpbb_log, auth */ public function is_runnable() { - return ($this->config['dark1_rsi_auto_reduce_sync_enable']); + return (bool) $this->config['dark1_rsi_auto_reduce_sync_enable']; } /** @@ -95,7 +95,7 @@ public function is_runnable() */ public function should_run() { - return (($this->config['dark1_rsi_auto_reduce_sync_last_gc'] < (time() - $this->config['dark1_rsi_auto_reduce_sync_gc']))); + return (bool) ($this->config['dark1_rsi_auto_reduce_sync_last_gc'] < (time() - $this->config['dark1_rsi_auto_reduce_sync_gc'])); } /** From 18e9f41787b074aff1add2d8edf542197a9a05be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dark=E2=9D=B6?= <25451052+Dark1z@users.noreply.github.com> Date: Sat, 2 Oct 2021 18:55:00 +0530 Subject: [PATCH 2/3] Fix RSI v1.0.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dark❶ <25451052+Dark1z@users.noreply.github.com> --- language/en/lang_acp_rsi.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/language/en/lang_acp_rsi.php b/language/en/lang_acp_rsi.php index fee45e0..2ca4eb5 100644 --- a/language/en/lang_acp_rsi.php +++ b/language/en/lang_acp_rsi.php @@ -70,8 +70,8 @@ // Cron 'ACP_RSI_CRON_ENABLE' => 'Enable Auto Reduce Sync', 'ACP_RSI_CRON_INTERVAL' => 'Auto Reduce Sync Interval', - 'ACP_RSI_CRON_LAST_RUN' => 'Auto Reduce Sync Last Run', - 'ACP_RSI_CRON_NEXT_RUN' => 'Auto Reduce Sync Next Run', - 'ACP_RSI_CRON_RUN' => 'Run Auto Reduce Sync', + 'ACP_RSI_CRON_LAST_RUN' => 'Reduce Sync Last Run', + 'ACP_RSI_CRON_NEXT_RUN' => 'Reduce Sync Next Run', + 'ACP_RSI_CRON_RUN' => 'Run Reduce Sync', 'ACP_RSI_CRON_RUN_NOW' => 'Run Now', ]); From c5032b2ddcbdbe70aac7c4b993aea4706eaa229a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dark=E2=9D=B6?= <25451052+Dark1z@users.noreply.github.com> Date: Mon, 8 Nov 2021 20:49:12 +0530 Subject: [PATCH 3/3] RSI v1.0.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dark❶ <25451052+Dark1z@users.noreply.github.com> --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index fd353fe..2186a6c 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "description": "Reduce Search Index [RSI]", "homepage": "https://phpbb.com/customise/db/extension/reduce_search_index", "version": "1.0.5", - "time": "2021-10-01", + "time": "2021-11-11", "keywords": [ "phpbb", "extension",