Fix occasion weird text appearing on warning popup

This commit is contained in:
Squidly271 2022-03-13 11:24:10 -04:00
parent f1bb3b5188
commit 6e2ce62d87
3 changed files with 2 additions and 2 deletions

View File

@ -20,4 +20,4 @@ da3b4f9b73c5c3bf65be6c42d68b51f9 ./scripts/showStatistics.php
34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php 34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php
62494acd8ae889cf55688a22852eadb0 ./skins/Narrow/css.php 62494acd8ae889cf55688a22852eadb0 ./skins/Narrow/css.php
639c5146c5880a617fe15f603b1cffa3 ./skins/Narrow/skin.html 639c5146c5880a617fe15f603b1cffa3 ./skins/Narrow/skin.html
badf083ab64ef098a4ebc36c7803efb1 ./skins/Narrow/skin.php 9ddbed3bf1868da36b2e1258be66859d ./skins/Narrow/skin.php

View File

@ -201,7 +201,7 @@ function my_display_apps($file,$pageNumber=1,$selectedApps=false,$startup=false)
} }
if ( ! $template['RequiresFile'] || ($template['RequiresFile'] && is_file($template['RequiresFile'])) ) { if ( ! $template['RequiresFile'] || ($template['RequiresFile'] && is_file($template['RequiresFile'])) ) {
$installComment = $template['RequiresFile'] ? "" : $installComment; $installComment = $template['RequiresFile'] ? "" : $installComment;
$actionsContext[] = array("icon"=>"ca_fa-install","text"=>$buttonTitle,"action"=>"installPlugin('{$template['PluginURL']}','','".str_replace([" ","\n"],["&#32",""],htmlspecialchars($installComment))."');"); $actionsContext[] = array("icon"=>"ca_fa-install","text"=>$buttonTitle,"action"=>"installPlugin('{$template['PluginURL']}','','".str_replace([" ","\n"],[" ",""],htmlspecialchars($installComment))."');");
} }
if ( $template['InstallPath'] ) { if ( $template['InstallPath'] ) {
if ( ! empty($actionsContext) ) if ( ! empty($actionsContext) )