N°5904 Fix hardcoded string when existing dict entry was available

This commit is contained in:
Stephen Abello
2023-02-01 09:40:38 +01:00
parent 53b68f88b8
commit 0cce58e0cf

View File

@@ -168,7 +168,7 @@ class BlockDirectLinksEditTable extends UIContentBlock
$this->AddSubBlock($aTablePanel);
}
catch (\Exception $e) {
$oAlert = AlertUIBlockFactory::MakeForDanger('error', 'error while trying to load datatable');
$oAlert = AlertUIBlockFactory::MakeForDanger('error', Dict::S('UI:Datatables:Language:Error'));
$oAlert->SetIsClosable(false);
$oAlert->SetIsCollapsible(false);
$this->AddSubBlock($oAlert);