summaryrefslogtreecommitdiff
path: root/core/libraries/Theme_View.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/libraries/Theme_View.php')
-rw-r--r--core/libraries/Theme_View.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/libraries/Theme_View.php b/core/libraries/Theme_View.php
index 84d86b0b..fba61afe 100644
--- a/core/libraries/Theme_View.php
+++ b/core/libraries/Theme_View.php
@@ -46,7 +46,6 @@ class Theme_View_Core extends View {
if ($maintenance_mode) {
message::warning(t("This site is currently in maintenance mode"));
}
-
}
public function url($path, $absolute_url=false) {
@@ -54,6 +53,11 @@ class Theme_View_Core extends View {
return $absolute_url ? url::abs_file($arg) : url::file($arg);
}
+ public function file($path) {
+ $theme_path = "themes/{$this->theme_name}/$path";
+ return url::file(file_exists($theme_path) ? $theme_path : $path);
+ }
+
public function item() {
return $this->item;
}