MobileProfile uses Plugin::path()

This commit is contained in:
Evan Prodromou 2011-02-03 11:46:20 -05:00
parent 26f0a24ab6
commit 0c7104ec2f
1 changed files with 2 additions and 2 deletions

View File

@ -241,13 +241,13 @@ class MobileProfilePlugin extends WAP20Plugin
if (file_exists(Theme::file('css/mp-screen.css'))) { if (file_exists(Theme::file('css/mp-screen.css'))) {
$action->cssLink('css/mp-screen.css', null, 'screen'); $action->cssLink('css/mp-screen.css', null, 'screen');
} else { } 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'))) { if (file_exists(Theme::file('css/mp-handheld.css'))) {
$action->cssLink('css/mp-handheld.css', null, 'handheld'); $action->cssLink('css/mp-handheld.css', null, 'handheld');
} else { } 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. // Allow other plugins to load their styles.