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

View File

@@ -91,7 +91,8 @@
<input type="checkbox" name="delete_comments[]" value="<?= $comment->id ?>" />
</td>
<td>
<a href="#"><img width="40" height="40" src="<?= $user->avatar_url(40) ?>"
<a href="#"><img width="40" height="40"
src="<?= $user->avatar_url(40, $theme->url("images/avatar.jpg")) ?>"
class="gAvatar" alt="<?= $comment->author_name() ?>" /></a>
<br/>
<a href="mailto:<?= $comment->author_email() ?>"