]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If not meant to serveMobile, show the default styles
authorSarven Capadisli <csarven@status.net>
Sun, 4 Oct 2009 20:42:03 +0000 (20:42 +0000)
committerSarven Capadisli <csarven@status.net>
Sun, 4 Oct 2009 20:42:03 +0000 (20:42 +0000)
plugins/MobileProfile/MobileProfilePlugin.php

index e7db09f15c54ab9ba7d0846abfd96a5f49f1f199..117e0aae650f0746f757a24f9520c8bd18b3a97c 100644 (file)
@@ -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');
         }