We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 960207c8 authored by Sarven Capadisli's avatar Sarven Capadisli

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

parent d13a9ae1
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment