Skip to content

Instantly share code, notes, and snippets.

@leo-leung
Created March 7, 2014 08:38
Show Gist options
  • Save leo-leung/9407735 to your computer and use it in GitHub Desktop.
Save leo-leung/9407735 to your computer and use it in GitHub Desktop.
sdg
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