use cssLink() instead of element() to write out references to CSS

This commit is contained in:
Craig Andrews 2009-12-04 20:21:05 -05:00
parent d31b1d774e
commit 675e32ac9a

View 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;