Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
26 | public function toOptionArray() { |
||
27 | $helper = Mage::helper('turpentine'); |
||
28 | return array( |
||
29 | array('value'=>'yes', 'label'=>Mage::helper('adminhtml')->__('Enable')), |
||
30 | array('value'=>'yes_forwarded_host', 'label'=>$helper->__('Yes, use HTTP X-Forwarded-Host Header')), |
||
31 | array('value'=>'no', 'label'=>Mage::helper('adminhtml')->__('Disable')), |
||
32 | ); |
||
33 | } |
||
34 | } |
||
35 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.