Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSI v1.0.5 #5

Merged
merged 3 commits into from
Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 0 additions & 5 deletions adm/style/dark1_rsi_acp_style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,3 @@
margin: 5px 0px 0px 0px;
padding: 5px 0px 0px 0px;
}

/* ACP RSI Cron Run Done */
.acp-rsi-crdn {
color: lime;
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions cron/auto_reduce_sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}

/**
Expand All @@ -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']));
}

/**
Expand Down
6 changes: 3 additions & 3 deletions language/en/lang_acp_rsi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]);