Created
March 7, 2014 08:38
-
-
Save leo-leung/9407735 to your computer and use it in GitHub Desktop.
sdg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: app/code/local/Cleargo/Ventica/controllers/NewsletterController.php | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- app/code/local/Cleargo/Ventica/controllers/NewsletterController.php (revision ) | |
+++ app/code/local/Cleargo/Ventica/controllers/NewsletterController.php (revision ) | |
@@ -5,6 +5,11 @@ | |
//--- get data from url | |
$email = $this->getRequest()->getParam('email'); | |
+ //add module enable checking, leo 20140307 | |
+ if(!Mage::helper('monkey')->canMonkey()){ | |
+ return; | |
+ } | |
+ | |
if (!Zend_Validate::is($email, 'EmailAddress')) : | |
$response = "Subscription FAILED !! Not valid email address"; | |
return $this->_setXmlResponse($response); | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment