MobileProfile uses Plugin::path()
This commit is contained in:
parent
26f0a24ab6
commit
0c7104ec2f
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user