Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Poirier2017-02-16 16:45:52 +0000
committerEric Poirier2017-02-16 17:06:22 +0000
commit4e9562792c90f21dbef404345aa540c29004048c (patch)
tree6a14015f8fb33c88c70fbc5eb2ee141164fe49e6
parent606ee4a5e68558da682c3fb72c52f6be235ebc04 (diff)
downloaddev.eclipse.org-4e9562792c90f21dbef404345aa540c29004048c.tar.gz
dev.eclipse.org-4e9562792c90f21dbef404345aa540c29004048c.tar.xz
dev.eclipse.org-4e9562792c90f21dbef404345aa540c29004048c.zip
subscription class was always on debug mode
Change-Id: Ib489ba600f3b7a2ea9482ef26e712eb8eee250b8 Signed-off-by: Eric Poirier <eric@eclipse.org>
-rw-r--r--eclipse.org-common/classes/subscriptions/subscriptions_base.class.php5
1 files changed, 3 insertions, 2 deletions
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 @@ class Subscriptions_base {
$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);
}
}

Back to the top