From 0da524fefe93b3028392e9014550eea3324d3a22 Mon Sep 17 00:00:00 2001 From: slawkens Date: Mon, 23 Jun 2025 00:21:41 +0200 Subject: [PATCH] Fix plugin install:install command --- system/src/Plugins.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/system/src/Plugins.php b/system/src/Plugins.php index 85f0a2ba..37a1af3c 100644 --- a/system/src/Plugins.php +++ b/system/src/Plugins.php @@ -781,15 +781,15 @@ class Plugins { return false; } - if(!isset($plugin_json['install'])) { - self::$error = "Plugin doesn't have install options defined. Skipping..."; - return false; + $install = $plugin_json['install'] ?? ''; + if (self::getAutoLoadOption($plugin_json, 'install', true) && is_file(PLUGINS . $plugin_name . '/install.php')) { + $install = 'plugins/' . $plugin_name . '/install.php'; } global $db; - if (file_exists(BASE . $plugin_json['install'])) { + if (file_exists(BASE . $install)) { $db->revalidateCache(); - require BASE . $plugin_json['install']; + require BASE . $install; $db->revalidateCache(); } else {