Skip to content

Commit 9579ebb

Browse files
committed
Fix issue #1093 - load language strings
1 parent 207f1a1 commit 9579ebb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/MetaModels/BackendIntegration/BackendModuleBuilder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
namespace MetaModels\BackendIntegration;
2222

23+
use Contao\System;
2324
use MetaModels\IMetaModelsServiceContainer;
2425
use MetaModels\BackendIntegration\InputScreen\IInputScreen;
2526
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
@@ -73,6 +74,11 @@ public function __construct(IMetaModelsServiceContainer $container, ViewCombinat
7374
$this->viewCombinations = $viewCombinations;
7475

7576
if (!$this->loadFromCache()) {
77+
// HOTFIX: See #1093 - the delete button message is contained in 'default' language file.
78+
// Loading our icon will trigger the \FilesModel to load the data container 'tl_files' but without
79+
// loading the language file first. Therefore the confirmation message in the delete button will cease to
80+
// exist.
81+
System::loadLanguageFile('default');
7682
$this->resolve();
7783
$this->saveToCache();
7884
}

0 commit comments

Comments
 (0)