Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
coastforge-rro committed Dec 4, 2019
2 parents 28d3517 + 966aec0 commit e442c84
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Classes/Helper/GetEventHelper.php
Expand Up @@ -17,15 +17,22 @@
use Contao\FilesModel;
use Contao\InsertTags;
use Contao\System;
use Doctrine\ORM\EntityManager;

class GetEventHelper
{
/**
* @var EntityManager
*/
private $entityManager = null;

/**
* GetEventHelper constructor.
*/
public function __construct()
{
System::loadLanguageFile('default');
$this->entityManager = System::getContainer()->get('doctrine.orm.default_entity_manager');
}


Expand All @@ -35,6 +42,7 @@ public function __construct()
*/
public function getExportEvent($exportSettings)
{
$exportSettings = $this->getSettings($exportSettings);
$filename = $this->parseFilename($exportSettings);
$foldername = $this->getPath($exportSettings);
$event = new ExportRunEvent();
Expand Down
1 change: 1 addition & 0 deletions Resources/contao/languages/de/tl_c4g_export.php
Expand Up @@ -69,6 +69,7 @@
$GLOBALS['TL_LANG'][$strName]['copy'] = array($strElement . ' kopieren', $strElement . ' mit der ID %s kopieren');
$GLOBALS['TL_LANG'][$strName]['delete'] = array($strElement . ' löschen', $strElement . ' mit der ID %s löschen');
$GLOBALS['TL_LANG'][$strName]['show'] = array($strElement . ' anzeigen', 'Details des ' . $strElement . 's mit der ID %s anzeigen');
$GLOBALS['TL_LANG'][$strName]['runexport'] = ["Export ausführen", "Den Export mit der ID %s ausführen."];

/** Options */
$GLOBALS['TL_LANG'][$strName]['contaodb'] = 'Contao Datenbank';
1 change: 1 addition & 0 deletions Resources/contao/languages/en/tl_c4g_export.php
Expand Up @@ -69,6 +69,7 @@
$GLOBALS['TL_LANG'][$strName]['copy'] = array('Copy ' . $strElement, 'Copy ' . $strElement . ' with ID %s');
$GLOBALS['TL_LANG'][$strName]['delete'] = array('Delete ' . $strElement, 'Delete ' . $strElement . ' with ID %s');
$GLOBALS['TL_LANG'][$strName]['show'] = array('Show ' . $strElement, 'Show details of the ' . $strElement . 'with ID %s');
$GLOBALS['TL_LANG'][$strName]['runexport'] = ["Run export", "Run the export with ID %s."];

/** Options */
$GLOBALS['TL_LANG'][$strName]['contaodb'] = 'Contao Database';

0 comments on commit e442c84

Please sign in to comment.