Skip to content

Commit

Permalink
Added check for isModuleOutputEnabled('Mage_AdminNotification')
Browse files Browse the repository at this point in the history
  • Loading branch information
S0FTWEX committed Aug 1, 2024
1 parent 15f9c78 commit 8685a12
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,13 @@ public function statusAction()
$state = Mage_Core_Model_File_Storage_Flag::STATE_NOTIFIED;
// no break
case Mage_Core_Model_File_Storage_Flag::STATE_NOTIFIED:
$block = Mage::getSingleton('core/layout')
->createBlock('adminhtml/notification_toolbar')
->setTemplate('notification/toolbar.phtml');
$result['html'] = $block->toHtml();
$result['html'] = '';
if (Mage::helper('core')->isModuleOutputEnabled('Mage_AdminNotification')) {
$block = Mage::getSingleton('core/layout')
->createBlock('adminhtml/notification_toolbar')
->setTemplate('notification/toolbar.phtml');
$result['html'] = $block->toHtml();
}

$flagData = $flag->getFlagData();
if (is_array($flagData)) {
Expand Down

0 comments on commit 8685a12

Please sign in to comment.