subscription class was always on debug mode

Change-Id: Ib489ba600f3b7a2ea9482ef26e712eb8eee250b8
Signed-off-by: Eric Poirier <eric@eclipse.org>
diff --git a/eclipse.org-common/classes/subscriptions/subscriptions_base.class.php b/eclipse.org-common/classes/subscriptions/subscriptions_base.class.php
index 6b3dd4b..0f0e599 100644
--- a/eclipse.org-common/classes/subscriptions/subscriptions_base.class.php
+++ b/eclipse.org-common/classes/subscriptions/subscriptions_base.class.php
@@ -31,8 +31,9 @@
     $this->Sessions = $this->App->useSession();
     $this->Friend = $this->Sessions->getFriend();
 
-    // Check to see if we're on staging or on production
-    if ($this->App->getEclipseDomain() != 'www.eclipse.org') {
+    // Set debug mode if the domain contains the word .local or staging
+    $domain = $this->App->getEclipseDomain();
+    if (in_array($domain['shortname'], array('local','staging'))) {
       $this->_setDebugMode(TRUE);
     }
   }