Skip to content

Commit 8ba3236

Browse files
luigifabfballiano
authored andcommitted
Fixed a bug that included ups.phtml in adminhtml also if Mage_Usa was disabled (#2975)
1 parent dee4855 commit 8ba3236

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,12 @@ public function editAction()
113113
$block = $this->getLayout()->createBlock('adminhtml/system_config_edit');
114114
$this->_addContent($block->initForm());
115115

116-
$this->_addJs($this->getLayout()
117-
->createBlock('adminhtml/template')
118-
->setTemplate('system/shipping/ups.phtml'));
116+
if (($current == 'carriers') && Mage::helper('core')->isModuleEnabled('Mage_Usa')) {
117+
$this->_addJs($this->getLayout()
118+
->createBlock('adminhtml/template')
119+
->setTemplate('system/shipping/ups.phtml'));
120+
}
121+
119122
$this->_addJs($this->getLayout()
120123
->createBlock('adminhtml/template')
121124
->setTemplate('system/config/js.phtml'));

0 commit comments

Comments
 (0)