Skip to content

Commit

Permalink
QA: #1987 - Provide Additional check feedback.
Browse files Browse the repository at this point in the history
* This will be a note to plugin developers to fix their plugins.
  • Loading branch information
TheWitness committed Nov 5, 2024
1 parent c307ccc commit 3b296bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@

break;
case 'check':
if (api_plugin_check_config($plugin)) {
$response = api_plugin_check_config($plugin);

if ($response === true) {
/* set the status as installable again if check passes */
db_execute_prepared('UPDATE plugin_config
SET status = 0
WHERE directory = ?',
array($plugin));

raise_message('plugin_good', __('Plugin \'%s\' has passed it\'s Configuration Check test and can not be Installed', $plugin), MESSAGE_LEVEL_INFO);
} elseif ($response === null) {
raise_message('plugin_good', __('Plugin \'%s\' Check Configuration function returned a null response which is invalid. Please check with Plugin Developer for an update.', $plugin), MESSAGE_LEVEL_WARN);
}

header('Location: plugins.php');
Expand Down

0 comments on commit 3b296bf

Please sign in to comment.