Skip to content

Commit

Permalink
Merge branch 'hotfix/1.3.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed Sep 26, 2016
2 parents c80129f + e7d0e07 commit 682d43d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions assets/backend.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#tl_navigation .tl_level_1_group .group-notification_center {
background: url(notification.png) 8px center no-repeat;
}
1 change: 0 additions & 1 deletion bin/queue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env php

<?php

/**
Expand Down
5 changes: 5 additions & 0 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
)
));

// Load icon in Contao 4.2 backend
if ('BE' === TL_MODE) {
$GLOBALS['TL_CSS'][] = 'system/modules/notification_center/assets/backend.css';
}

/**
* Front end modules
*/
Expand Down
2 changes: 1 addition & 1 deletion library/NotificationCenter/Model/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function send(array $arrTokens, $strLanguage = '')

if (isset($GLOBALS['TL_HOOKS']['sendNotificationMessage']) && is_array($GLOBALS['TL_HOOKS']['sendNotificationMessage'])) {
foreach ($GLOBALS['TL_HOOKS']['sendNotificationMessage'] as $arrCallback) {
$blnSuccess = \System::importStatic($arrCallback[0])->$arrCallback[1]($this, $arrTokens, $strLanguage, $objGatewayModel);
$blnSuccess = \System::importStatic($arrCallback[0])->{$arrCallback[1]}($this, $arrTokens, $strLanguage, $objGatewayModel);

if (!$blnSuccess) {
return false;
Expand Down

0 comments on commit 682d43d

Please sign in to comment.