]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
MobileProfile uses Plugin::path()
authorEvan Prodromou <evan@status.net>
Thu, 3 Feb 2011 16:46:20 +0000 (11:46 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 3 Feb 2011 16:46:20 +0000 (11:46 -0500)
plugins/MobileProfile/MobileProfilePlugin.php

index b50440682f70c532132193bdc5dcf6ea6e190ea8..b9c25ab998913d65cbf79ca2794a6f07ff30f9fc 100644 (file)
@@ -241,13 +241,13 @@ class MobileProfilePlugin extends WAP20Plugin
         if (file_exists(Theme::file('css/mp-screen.css'))) {
             $action->cssLink('css/mp-screen.css', null, 'screen');
         } else {
-            $action->cssLink('plugins/MobileProfile/mp-screen.css',null,'screen');
+            $action->cssLink($this->path('mp-screen.css'),null,'screen');
         }
 
         if (file_exists(Theme::file('css/mp-handheld.css'))) {
             $action->cssLink('css/mp-handheld.css', null, 'handheld');
         } else {
-            $action->cssLink('plugins/MobileProfile/mp-handheld.css',null,'handheld');
+            $action->cssLink($this->path('mp-handheld.css'),null,'handheld');
         }
 
         // Allow other plugins to load their styles.