mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-25 22:30:15 +02:00
In case the script don't have install option, inform the user
This commit is contained in:
parent
13d33822b5
commit
6d43fc181f
@ -786,6 +786,11 @@ class Plugins {
|
||||
$install = 'plugins/' . $plugin_name . '/install.php';
|
||||
}
|
||||
|
||||
if (empty($install)) {
|
||||
self::$error = "This plugin doesn't seem to have install script defined.";
|
||||
return false;
|
||||
}
|
||||
|
||||
global $db;
|
||||
if (file_exists(BASE . $install)) {
|
||||
$db->revalidateCache();
|
||||
|
Loading…
x
Reference in New Issue
Block a user