From 9b90b4b0cd464424f3f9a4214d265db69b3691dc Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 10 Jan 2009 06:18:35 +0000 Subject: Use the theme's avatar as the default if Gravatar doesn't have one. --- core/libraries/Admin_View.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/libraries/Admin_View.php') 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") { -- cgit v1.2.3