summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-11-20 02:12:09 +0000
committerSarven Capadisli <csarven@status.net>2009-11-20 02:12:09 +0000
commit30f660b05c1b4938b192f88574ec5f90dd0d3bf6 (patch)
tree350c2aed3bc9b22138b04bcd74b784f2d421bb71
parent377f95a20ffe59aa34214528d7c37694cc436eb8 (diff)
Using common_redirect
-rw-r--r--plugins/MobileProfile/MobileProfilePlugin.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php
index 9f8923396..c257f3fd8 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);
}
}