We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dee4855 commit 8ba3236Copy full SHA for 8ba3236
app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php
@@ -113,9 +113,12 @@ public function editAction()
113
$block = $this->getLayout()->createBlock('adminhtml/system_config_edit');
114
$this->_addContent($block->initForm());
115
116
- $this->_addJs($this->getLayout()
117
- ->createBlock('adminhtml/template')
118
- ->setTemplate('system/shipping/ups.phtml'));
+ if (($current == 'carriers') && Mage::helper('core')->isModuleEnabled('Mage_Usa')) {
+ $this->_addJs($this->getLayout()
+ ->createBlock('adminhtml/template')
119
+ ->setTemplate('system/shipping/ups.phtml'));
120
+ }
121
+
122
$this->_addJs($this->getLayout()
123
->createBlock('adminhtml/template')
124
->setTemplate('system/config/js.phtml'));
0 commit comments