Don't redirect if mobile server is same as site server

This commit is contained in:
Sarven Capadisli 2009-10-04 13:27:46 +00:00
parent d13a9ae11c
commit 960207c81e

View 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();