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..2186a6c 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-11-11", "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'])); } /** 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', ]);