Skip to content

Commit

Permalink
Update bg_prestasms.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspijak committed Apr 5, 2020
1 parent 9cb5385 commit 2437809
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions bg_prestasms.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,17 @@ public function hookDisplayAdminOrderRight(array $params)

$controller = 'AdminPrestaSmsDashboardDefault';

$this->context->smarty->registerPlugin('modifier', 'prestaSmsEscapeHtml', array('BulkGate\Extensions\Escape', 'html'));
$this->context->smarty->registerPlugin('modifier', 'prestaSmsEscapeJs', array('BulkGate\Extensions\Escape', 'js'));
$this->context->smarty->registerPlugin('modifier', 'prestaSmsEscapeUrl', array('BulkGate\Extensions\Escape', 'url'));
$this->context->smarty->registerPlugin('modifier', 'prestaSmsEscapeHtmlAttr', array('BulkGate\Extensions\Escape', 'htmlAttr'));
$this->context->smarty->registerPlugin('modifier', 'prestaSmsTranslate', array($this->ps_di->getTranslator(), 'translate'));
try
{
$this->context->smarty->registerPlugin('modifier', 'prestaSmsEscapeHtml', array('BulkGate\Extensions\Escape', 'html'));
$this->context->smarty->registerPlugin('modifier', 'prestaSmsEscapeJs', array('BulkGate\Extensions\Escape', 'js'));
$this->context->smarty->registerPlugin('modifier', 'prestaSmsEscapeUrl', array('BulkGate\Extensions\Escape', 'url'));
$this->context->smarty->registerPlugin('modifier', 'prestaSmsEscapeHtmlAttr', array('BulkGate\Extensions\Escape', 'htmlAttr'));
$this->context->smarty->registerPlugin('modifier', 'prestaSmsTranslate', array($this->ps_di->getTranslator(), 'translate'));
}
catch (SmartyException $e)
{
}

return $this->context->smarty->createTemplate(_BG_PRESTASMS_DIR_.'/templates/panel.tpl', null, null, array(
'application_id' => $this->ps_settings->load('static:application_id', ''),
Expand Down

0 comments on commit 2437809

Please sign in to comment.