]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use cssLink() instead of element() to write out references to CSS
authorCraig Andrews <candrews@integralblue.com>
Sat, 5 Dec 2009 01:21:05 +0000 (20:21 -0500)
committerCraig Andrews <candrews@integralblue.com>
Sat, 5 Dec 2009 01:21:05 +0000 (20:21 -0500)
plugins/MobileProfile/MobileProfilePlugin.php

index 0b1e4de28651a51c98443bd901dd40e09c24428c..8b5e5f31da6b1a08077c4cfcd160c4bc0a7854ad 100644 (file)
@@ -243,19 +243,13 @@ class MobileProfilePlugin extends WAP20Plugin
         if (file_exists(Theme::file('css/mp-screen.css'))) {
             $action->cssLink('css/mp-screen.css', null, 'screen');
         } else {
-            $action->element('link', array('rel' => 'stylesheet',
-                                         'type' => 'text/css',
-                                         'href' => common_path('plugins/MobileProfile/mp-screen.css') . '?version=' . STATUSNET_VERSION,
-                                         'media' => 'screen'));
+            $action->cssLink('plugins/MobileProfile/mp-screen.css',null,'screen');
         }
 
         if (file_exists(Theme::file('css/mp-handheld.css'))) {
             $action->cssLink('css/mp-handheld.css', null, 'handheld');
         } else {
-            $action->element('link', array('rel' => 'stylesheet',
-                                         'type' => 'text/css',
-                                         'href' => common_path('plugins/MobileProfile/mp-handheld.css') . '?version=' . STATUSNET_VERSION,
-                                         'media' => 'handheld'));
+            $action->cssLink('plugins/MobileProfile/mp-handheld.css',null,'handheld');
         }
 
         return false;