summaryrefslogtreecommitdiff
path: root/plugins/MobileProfile/MobileProfilePlugin.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-10-04 20:53:30 +0000
committerSarven Capadisli <csarven@status.net>2009-10-04 20:53:30 +0000
commitfe4a49d4a5cc728d6ee0484ceecba796af29fc42 (patch)
tree2dfb1f6689fe70cb40bbc89b99ac0af8137e261a /plugins/MobileProfile/MobileProfilePlugin.php
parent3ee1af9aaa3a7e69a97f36498e6fe9617f708581 (diff)
If they are not on the mobile site or not interested in getting the
mobile profile, then give them the regular output.
Diffstat (limited to 'plugins/MobileProfile/MobileProfilePlugin.php')
-rw-r--r--plugins/MobileProfile/MobileProfilePlugin.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php
index 3f3d10261..28a2eb0c1 100644
--- a/plugins/MobileProfile/MobileProfilePlugin.php
+++ b/plugins/MobileProfile/MobileProfilePlugin.php
@@ -141,6 +141,10 @@ class MobileProfilePlugin extends WAP20Plugin
}
}
+ if (!$this->serveMobile) {
+ return true;
+ }
+
header('Content-Type: '.$type);
$action->extraHeaders();