@@ -21,19 +21,19 @@ |
||
| 21 | 21 | |
| 22 | 22 | class Nexcessnet_Turpentine_Block_Poll_ActivePoll extends Mage_Poll_Block_ActivePoll { |
| 23 | 23 | |
| 24 | - public function setTemplate($template) |
|
| 25 | - { |
|
| 26 | - if ((Mage::getConfig()->getModuleConfig('Mage_Poll')->is('active', 'true')) && |
|
| 27 | - (!Mage::getStoreConfig('advanced/modules_disable_output/Mage_Poll'))) |
|
| 28 | - { |
|
| 29 | - $this->_template = $template; |
|
| 30 | - $this->setPollTemplate('turpentine/ajax.phtml', 'poll'); |
|
| 31 | - $this->setPollTemplate('turpentine/ajax.phtml', 'results'); |
|
| 32 | - } |
|
| 33 | - else |
|
| 34 | - { |
|
| 35 | - // Mage_Poll is disabled, so do nothing |
|
| 36 | - } |
|
| 37 | - return $this; |
|
| 38 | - } |
|
| 24 | + public function setTemplate($template) |
|
| 25 | + { |
|
| 26 | + if ((Mage::getConfig()->getModuleConfig('Mage_Poll')->is('active', 'true')) && |
|
| 27 | + (!Mage::getStoreConfig('advanced/modules_disable_output/Mage_Poll'))) |
|
| 28 | + { |
|
| 29 | + $this->_template = $template; |
|
| 30 | + $this->setPollTemplate('turpentine/ajax.phtml', 'poll'); |
|
| 31 | + $this->setPollTemplate('turpentine/ajax.phtml', 'results'); |
|
| 32 | + } |
|
| 33 | + else |
|
| 34 | + { |
|
| 35 | + // Mage_Poll is disabled, so do nothing |
|
| 36 | + } |
|
| 37 | + return $this; |
|
| 38 | + } |
|
| 39 | 39 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function setTemplate($template) |
| 25 | 25 | { |
| 26 | 26 | if ((Mage::getConfig()->getModuleConfig('Mage_Poll')->is('active', 'true')) && |
| 27 | - (!Mage::getStoreConfig('advanced/modules_disable_output/Mage_Poll'))) |
|
| 27 | + ( ! Mage::getStoreConfig('advanced/modules_disable_output/Mage_Poll'))) |
|
| 28 | 28 | { |
| 29 | 29 | $this->_template = $template; |
| 30 | 30 | $this->setPollTemplate('turpentine/ajax.phtml', 'poll'); |
@@ -29,8 +29,7 @@ |
||
| 29 | 29 | $this->_template = $template; |
| 30 | 30 | $this->setPollTemplate('turpentine/ajax.phtml', 'poll'); |
| 31 | 31 | $this->setPollTemplate('turpentine/ajax.phtml', 'results'); |
| 32 | - } |
|
| 33 | - else |
|
| 32 | + } else |
|
| 34 | 33 | { |
| 35 | 34 | // Mage_Poll is disabled, so do nothing |
| 36 | 35 | } |