summaryrefslogtreecommitdiff
path: root/plugins/MobileProfile
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-10-04 13:27:46 +0000
committerSarven Capadisli <csarven@status.net>2009-10-04 13:27:46 +0000
commit960207c81eb9f420f916c6889f2f4b4c09a5a480 (patch)
tree3d141b95f5c2dedb544f6d6e2e7668d9622b5471 /plugins/MobileProfile
parentd13a9ae11cac54f13e565ddccb05f2600a272b52 (diff)
Don't redirect if mobile server is same as site server
Diffstat (limited to 'plugins/MobileProfile')
-rw-r--r--plugins/MobileProfile/MobileProfilePlugin.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php
index 932550189..d854b6e5e 100644
--- a/plugins/MobileProfile/MobileProfilePlugin.php
+++ b/plugins/MobileProfile/MobileProfilePlugin.php
@@ -131,7 +131,9 @@ class MobileProfilePlugin extends WAP20Plugin
// If they are okay with MP, and the site has a mobile server,
// redirect there
if ($this->serveMobile &&
- common_config('site', 'mobileserver') !== false) {
+ common_config('site', 'mobileserver') !== false &&
+ common_config('site', 'mobileserver') !=
+ common_config('site', 'server')) {
header("Location: ".common_config('site', 'mobileserver'));
exit();