Fixed display aberration on "Requires" when installing from card if a number was preceded by a space

This commit is contained in:
Squidly271 2022-11-18 12:50:56 -05:00
parent f0d6a5b52b
commit e48afdb26e
3 changed files with 6 additions and 3 deletions

View File

@ -22,4 +22,4 @@ da3b4f9b73c5c3bf65be6c42d68b51f9 ./scripts/showStatistics.php
34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php
25bdaed6f62ac73f9ef7c3ce0c125ef7 ./skins/Narrow/css.php
7eb021a105e2f7a15675ec8a14e6f05e ./skins/Narrow/skin.html
ed36cec95942703531b40378d1e6b563 ./skins/Narrow/skin.php
6f998dc8d9c39af7b38dca3169f8eebd ./skins/Narrow/skin.php

View File

@ -192,9 +192,9 @@ function my_display_apps($file,$pageNumber=1,$selectedApps=false,$startup=false)
$actionsContext[] = array("divider"=>true);
}
}
$actionsContext[] = array("icon"=>"ca_fa-install","text"=>tr("Install"),"action"=>"popupInstallXML('".addslashes($template['Path'])."','default','".str_replace(" ","&#32",htmlspecialchars($installComment))."','".portsUsed($template)."');");
$actionsContext[] = array("icon"=>"ca_fa-install","text"=>tr("Install"),"action"=>"popupInstallXML('".addslashes($template['Path'])."','default','".str_replace(" "," ",htmlspecialchars($installComment))."','".portsUsed($template)."');");
} else {
$actionsContext[] = array("icon"=>"ca_fa-install","text"=>tr("Install"),"action"=>"displayTags('{$template['ID']}',false,'".str_replace(" ","&#32",htmlspecialchars($installComment))."','".portsUsed($template)."');");
$actionsContext[] = array("icon"=>"ca_fa-install","text"=>tr("Install"),"action"=>"displayTags('{$template['ID']}',false,'".str_replace(" "," ",htmlspecialchars($installComment))."','".portsUsed($template)."');");
}
}
}
@ -1248,6 +1248,9 @@ function displayCard($template) {
";
$Overview = $Overview ?: $Description;
if ( ! $Overview )
$Overview = tr("No description present");
$ovr = html_entity_decode($Overview);
$ovr = trim($ovr);