summaryrefslogtreecommitdiff
path: root/plugins/MobileProfile
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-10-04 20:42:03 +0000
committerSarven Capadisli <csarven@status.net>2009-10-04 20:42:03 +0000
commitef7e4cb72d12b714215317635e1de4badf340529 (patch)
tree3b3034fd1bc2197a73f284aeb795bdf903c75699 /plugins/MobileProfile
parent62400b8c89792fc105b7a04b5d677171de89fcda (diff)
If not meant to serveMobile, show the default styles
Diffstat (limited to 'plugins/MobileProfile')
-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 e7db09f15..117e0aae6 100644
--- a/plugins/MobileProfile/MobileProfilePlugin.php
+++ b/plugins/MobileProfile/MobileProfilePlugin.php
@@ -173,6 +173,10 @@ class MobileProfilePlugin extends WAP20Plugin
function onStartShowStatusNetStyles($action) {
+ if (!$action->serveMobile) {
+ return true;
+ }
+
if (file_exists(theme_file('css/mp-screen.css'))) {
$action->cssLink('css/mp-screen.css', null, 'screen');
}