Skip to content

Commit

Permalink
Theme plugin will now give correct path even for mobile themes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Sturgeon committed Dec 10, 2010
1 parent 8822179 commit e94ee06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/pyrocms/plugins/theme.php
Expand Up @@ -38,7 +38,8 @@ function partial()
function path()
{
$data =& $this->load->_ci_cached_vars;
return dirname($data['template_views']).'/';
$path = rtrim($data['template_views'], '/');
return preg_replace('#(\/views(\/web|\/mobile)?)$#', '', $path).'/';
}

/**
Expand Down

0 comments on commit e94ee06

Please sign in to comment.