From ef7e4cb72d12b714215317635e1de4badf340529 Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Sun, 4 Oct 2009 20:42:03 +0000 Subject: If not meant to serveMobile, show the default styles --- plugins/MobileProfile/MobileProfilePlugin.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/MobileProfile') 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'); } -- cgit v1.2.3-54-g00ecf