diff --git a/system/bin/execute_install_plugin.php b/system/bin/execute_install_plugin.php new file mode 100644 index 00000000..b6127a66 --- /dev/null +++ b/system/bin/execute_install_plugin.php @@ -0,0 +1,31 @@ +revalidateCache(); + require BASE . $plugin_json['install']; + $db->revalidateCache(); + } + else { + self::$warnings[] = 'Cannot load install script. Your plugin might be not working correctly.'; + } + + return true; + } + public static function uninstall($plugin_name): bool { $filename = BASE . 'plugins/' . $plugin_name . '.json';