Use the theme's avatar as the default if Gravatar doesn't have one.

This commit is contained in:
Bharat Mediratta
2009-01-10 06:18:35 +00:00
parent 5690e58c45
commit 9b90b4b0cd
7 changed files with 21 additions and 13 deletions
+3 -2
View File
@@ -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") {