N°3007 - Warn the user that installing a patch on a non conform install is not recommended

This commit is contained in:
Eric
2020-06-04 10:38:58 +02:00
parent 8064a20718
commit 9d8a7bf561
6 changed files with 99 additions and 12 deletions

View File

@@ -28,7 +28,8 @@ class AjaxController extends Controller
try
{
$bCanUpdateCore = FilesInformation::CanUpdateCore($sMessage);
$sCanUpdateCore = FilesInformation::CanUpdateCore($sMessage);
$bCanUpdateCore = ($sCanUpdateCore == 'Yes');
$aParams['bStatus'] = $bCanUpdateCore;
if ($bCanUpdateCore)
{
@@ -36,7 +37,7 @@ class AjaxController extends Controller
}
else
{
$aParams['sMessage'] = Dict::Format('iTopUpdate:UI:CanCoreUpdate:No', $sMessage);
$aParams['sMessage'] = Dict::Format("iTopUpdate:UI:CanCoreUpdate:{$sCanUpdateCore}", $sMessage);
}
} catch (FileNotExistException $e)
{