#2539 - fixed doubled push notifications

This commit is contained in:
Blonďák 2017-01-12 22:11:50 +01:00
parent c9930d3d52
commit 41bd5e4e50

View File

@ -144,9 +144,10 @@
$message = false;
foreach (array('/mail/push_notifications/', '/mail/notifications/') as $dir){
$this->smarty->clearCache($templateFile = TEMPLATE_DIR.$dir.$template.'.tpl');
$this->smarty->clearCache($templateFile = TEMPLATE_DIR.$dir.$template.'.tpl');
try {
$message = $this->smarty->fetch($templateFile);
break;
} catch (SmartyException $e){
}
@ -168,4 +169,3 @@
$pushnotification->setConfig($config);
$pushnotification->setSetting($setting);
$pushnotification->setErrorCodes($aErrorCodes);