From: Sarven Capadisli Date: Fri, 20 Nov 2009 02:12:09 +0000 (+0000) Subject: Using common_redirect X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=30f660b05c1b4938b192f88574ec5f90dd0d3bf6;p=quix0rs-gnu-social.git Using common_redirect --- diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php index 9f8923396d..c257f3fd84 100644 --- a/plugins/MobileProfile/MobileProfilePlugin.php +++ b/plugins/MobileProfile/MobileProfilePlugin.php @@ -63,9 +63,6 @@ class MobileProfilePlugin extends WAP20Plugin function onStartShowHTML($action) { - - - // XXX: This should probably graduate to WAP20Plugin // If they are on the mobile site, serve them MP @@ -162,8 +159,7 @@ class MobileProfilePlugin extends WAP20Plugin common_config('site', 'server'))) { // FIXME: Redirect to equivalent page on mobile site instead - header("Location: ".$this->_common_path('')); - exit(); + common_redirect($this->_common_path(''), 302); } }