]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't redirect if mobile server is same as site server
authorSarven Capadisli <csarven@status.net>
Sun, 4 Oct 2009 13:27:46 +0000 (13:27 +0000)
committerSarven Capadisli <csarven@status.net>
Sun, 4 Oct 2009 13:27:46 +0000 (13:27 +0000)
plugins/MobileProfile/MobileProfilePlugin.php

index 93255018941106f2151e9a7727d5ec912b8aeaf3..d854b6e5e3165af1aa48206bb37206f72651c970 100644 (file)
@@ -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();