Skip to content

Commit

Permalink
Backend: link to RSS only if they are enabled (#3997)
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano authored May 16, 2024
1 parent b38b7de commit f251616
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/code/core/Mage/Adminhtml/Block/Review/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,12 @@ protected function _prepareColumns()
]
);

$this->addRssList('rss/catalog/review', Mage::helper('catalog')->__('Pending Reviews RSS'));
if (Mage::helper('catalog')->isModuleEnabled('Mage_Rss') &&
Mage::helper('rss')->isRssEnabled() &&
Mage::getStoreConfigFlag('rss/catalog/review')
) {
$this->addRssList('rss/catalog/review', Mage::helper('catalog')->__('Pending Reviews RSS'));
}

return parent::_prepareColumns();
}
Expand Down
8 changes: 7 additions & 1 deletion app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,13 @@ protected function _prepareColumns()
]
);
}
$this->addRssList('rss/order/new', Mage::helper('sales')->__('New Order RSS'));

if (Mage::helper('catalog')->isModuleEnabled('Mage_Rss') &&
Mage::helper('rss')->isRssEnabled() &&
Mage::getStoreConfigFlag('rss/order/new')
) {
$this->addRssList('rss/order/new', Mage::helper('sales')->__('New Order RSS'));
}

$this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
$this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel XML'));
Expand Down

0 comments on commit f251616

Please sign in to comment.