summaryrefslogtreecommitdiff
path: root/plugins/MobileProfile/MobileProfilePlugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MobileProfile/MobileProfilePlugin.php')
-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();