1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2025-08-12 11:41:09 +02:00

Fix: re-add copyPluginFiles()

This commit is contained in:
billz 2025-02-19 01:47:20 -08:00
parent 20fdd9024d
commit 163d727ee1

View File

@ -203,6 +203,10 @@ class PluginInstaller
$this->copyJavaScriptFiles($manifest['javascript'], $pluginDir);
$rollbackStack[] = 'removeJavaScript';
}
if ($installPath === 'plugins') {
$this->copyPluginFiles($pluginDir, $this->rootPath);
$rollbackStack[] = 'removePluginFiles';
}
return true;
} catch (\Exception $e) {
@ -377,6 +381,7 @@ class PluginInstaller
try {
$tempFile = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid('plugin_', true) . '.zip';
$extractDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid('plugin_', true);
$data = @file_get_contents($archiveUrl); // suppress PHP warnings for better exception handling
if ($data === false) {