mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-26 06:40:14 +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';
|
$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;
|
global $db;
|
||||||
if (file_exists(BASE . $install)) {
|
if (file_exists(BASE . $install)) {
|
||||||
$db->revalidateCache();
|
$db->revalidateCache();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user