summaryrefslogtreecommitdiff
path: root/core/libraries
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-10 06:18:35 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-10 06:18:35 +0000
commit9b90b4b0cd464424f3f9a4214d265db69b3691dc (patch)
treea8e42c5442b5ed06aba7637ba33fcb49af8a833a /core/libraries
parent5690e58c4577e9b0a29f0c1d95edc7e6715a2cf6 (diff)
Use the theme's avatar as the default if Gravatar doesn't have one.
Diffstat (limited to 'core/libraries')
-rw-r--r--core/libraries/Admin_View.php5
-rw-r--r--core/libraries/Theme_View.php5
2 files changed, 6 insertions, 4 deletions
diff --git a/core/libraries/Admin_View.php b/core/libraries/Admin_View.php
index dcfbca4a..4a367c94 100644
--- a/core/libraries/Admin_View.php
+++ b/core/libraries/Admin_View.php
@@ -36,8 +36,9 @@ class Admin_View_Core extends View {
$this->set_global('user', user::active());
}
- 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 display($page_name, $view_class="View") {
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() {