From: Sarven Capadisli Date: Sun, 4 Oct 2009 13:27:46 +0000 (+0000) Subject: Don't redirect if mobile server is same as site server X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=960207c81eb9f420f916c6889f2f4b4c09a5a480;p=quix0rs-gnu-social.git Don't redirect if mobile server is same as site server --- diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php index 9325501894..d854b6e5e3 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();