Certain plugins with additional requirements couldn't be reinstalled from the card in Previous Apps

pull/11/head
Squidly271 2022-03-04 15:44:36 -05:00
parent 88c980d58c
commit 76e6b621f6
4 changed files with 6 additions and 3 deletions

View File

@ -1127,6 +1127,9 @@ function installPlugin(pluginURL,update=false,comment="") {
}
});
} else {
alert(type);
alert(pluginURL);
openBox('/plugins/community.applications/scripts/pluginInstall.php&arg1='+type+'&arg2='+pluginURL,title,600,900,true,"OpenSidebarAndRefreshDisplay");
}

View File

@ -1,4 +1,4 @@
37e661a0dba61f17b1a498cccb779f13 ./Apps.page
9c6cd69ba31784a50716f6f09d24a5ce ./Apps.page
4e55f7483b661af21a25b677179baffe ./CA_notices.page
42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page
e718d7825dbdc96a17a915079222b098 ./default.cfg
@ -20,4 +20,4 @@ e19c8f05c687dcf03ea0ba2ed7099a6e ./scripts/showStatistics.php
34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php
2da35d3042b93459f171595811d534b3 ./skins/Narrow/css.php
e9244df3418ca3e7fa206d9b6e94c6b1 ./skins/Narrow/skin.html
7026cc536702992828d798bb48097e28 ./skins/Narrow/skin.php
f94c63b12939e8abf091d81847abeea7 ./skins/Narrow/skin.php

View File

@ -197,7 +197,7 @@ function my_display_apps($file,$pageNumber=1,$selectedApps=false,$startup=false)
$installComment = tr("This application has additional requirements")."<br>".markdown($template['Requires']);
}
}
$actionsContext[] = array("icon"=>"ca_fa-install","text"=>$buttonTitle,"action"=>"installPlugin('{$template['PluginURL']}','','".str_replace(" ","&#32",htmlspecialchars($installComment))."');");
$actionsContext[] = array("icon"=>"ca_fa-install","text"=>$buttonTitle,"action"=>"installPlugin('{$template['PluginURL']}','','".str_replace([" ","\n"],["&#32",""],htmlspecialchars($installComment))."');");
if ( $template['InstallPath'] ) {
if ( ! empty($actionsContext) )
$actionsContext[] = array("divider"=>true);