mirror of
https://github.com/Squidly271/community.applications.git
synced 2025-06-03 14:52:13 +08:00
only prepopulate pluginsPending if there is more than 1
This commit is contained in:
parent
0760c9459a
commit
0fbb8f0122
Binary file not shown.
BIN
archive/community.applications-2022.10.13-x86_64-1.txz
Normal file
BIN
archive/community.applications-2022.10.13-x86_64-1.txz
Normal file
Binary file not shown.
@ -2,7 +2,7 @@
|
|||||||
4e55f7483b661af21a25b677179baffe ./CA_notices.page
|
4e55f7483b661af21a25b677179baffe ./CA_notices.page
|
||||||
4c5d4598e1bafa46bd90c27cbe302122 ./ca_settings.page
|
4c5d4598e1bafa46bd90c27cbe302122 ./ca_settings.page
|
||||||
e8d29607ec792ddf9f6832b10ee70fdc ./default.cfg
|
e8d29607ec792ddf9f6832b10ee70fdc ./default.cfg
|
||||||
141185e4e1fee9ada93112be1c3277b9 ./include/exec.php
|
707455867165655b1ef26315dcf224c5 ./include/exec.php
|
||||||
f25b1ed0b1cddfb4ff95a10ced212a0d ./include/helpers.php
|
f25b1ed0b1cddfb4ff95a10ced212a0d ./include/helpers.php
|
||||||
116042a918060278e77379b0dd73482c ./include/paths.php
|
116042a918060278e77379b0dd73482c ./include/paths.php
|
||||||
532fffdf939594c143e679da02bd841e ./javascript/libraries.js
|
532fffdf939594c143e679da02bd841e ./javascript/libraries.js
|
||||||
|
@ -2431,12 +2431,14 @@ function saveMultiPluginPending() {
|
|||||||
global $caPaths;
|
global $caPaths;
|
||||||
|
|
||||||
$plugin = getPost("plugin","");
|
$plugin = getPost("plugin","");
|
||||||
$plugins = explode("*",$plugin);
|
$plugins = array_filter(explode("*",$plugin));
|
||||||
exec("mkdir -p {$caPaths['pluginPending']}");
|
if ( count($plugins) > 1 ) {
|
||||||
foreach ($plugins as $plg) {
|
exec("mkdir -p {$caPaths['pluginPending']}");
|
||||||
if (! $plg ) continue;
|
foreach ($plugins as $plg) {
|
||||||
$pluginName = basename($plg);
|
if (! $plg ) continue;
|
||||||
touch($caPaths['pluginPending'].$pluginName);
|
$pluginName = basename($plg);
|
||||||
|
touch($caPaths['pluginPending'].$pluginName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
postReturn(['status'=>'ok']);
|
postReturn(['status'=>'ok']);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user