From ab785f612a94c131d987e1c195f66a3a52a01b53 Mon Sep 17 00:00:00 2001 From: Samantha Doherty Date: Thu, 25 Aug 2011 12:16:40 -0400 Subject: [PATCH] Make MobileProfile load its own AND theme CSS files if available. --- plugins/MobileProfile/MobileProfilePlugin.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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. -- 2.39.5