]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Make MobileProfile load its own AND theme CSS files if available.
authorSamantha Doherty <sammy@status.net>
Thu, 25 Aug 2011 16:16:40 +0000 (12:16 -0400)
committerSamantha Doherty <sammy@status.net>
Thu, 25 Aug 2011 16:16:40 +0000 (12:16 -0400)
plugins/MobileProfile/MobileProfilePlugin.php

index 5d84c28dc7bba5edf6c013318d3e40a4ed6e0071..bc25b340e98d3b1b5c6240c5693f6d22a812d0d2 100644 (file)
@@ -251,16 +251,14 @@ class MobileProfilePlugin extends WAP20Plugin
 
         $action->primaryCssLink();
 
+        $action->cssLink($this->path('mp-screen.css'),null,'screen');
         if (file_exists(Theme::file('css/mp-screen.css'))) {
             $action->cssLink('css/mp-screen.css', null, 'screen');
-        } else {
-            $action->cssLink($this->path('mp-screen.css'),null,'screen');
         }
 
+        $action->cssLink($this->path('mp-handheld.css'),null,'handheld');
         if (file_exists(Theme::file('css/mp-handheld.css'))) {
             $action->cssLink('css/mp-handheld.css', null, 'handheld');
-        } else {
-            $action->cssLink($this->path('mp-handheld.css'),null,'handheld');
         }
 
         // Allow other plugins to load their styles.