Don't redirect if mobile server is same as site server
This commit is contained in:
parent
d13a9ae11c
commit
960207c81e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user