From: Samantha Doherty Date: Thu, 25 Aug 2011 16:16:40 +0000 (-0400) Subject: Make MobileProfile load its own AND theme CSS files if available. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ab785f612a94c131d987e1c195f66a3a52a01b53;p=quix0rs-gnu-social.git Make MobileProfile load its own AND theme CSS files if available. --- diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php index 5d84c28dc7..bc25b340e9 100644 --- a/plugins/MobileProfile/MobileProfilePlugin.php +++ b/plugins/MobileProfile/MobileProfilePlugin.php @@ -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.