diff options
Diffstat (limited to 'core/libraries/Theme_View.php')
-rw-r--r-- | core/libraries/Theme_View.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/libraries/Theme_View.php b/core/libraries/Theme_View.php index f2059f77..ea39cdfc 100644 --- a/core/libraries/Theme_View.php +++ b/core/libraries/Theme_View.php @@ -38,8 +38,9 @@ class Theme_View_Core extends View { $this->set_global("page_type", $page_type); } - public function url($path) { - return url::file("themes/{$this->theme_name}/$path"); + public function url($path, $absolute_url=false) { + $arg = "themes/{$this->theme_name}/$path"; + return $absolute_url ? url::abs_file($arg) : url::file($arg); } public function item() { |