diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-11 11:23:09 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-11 11:23:09 +0000 |
commit | 0cf0bca9495528ce17d544d8baa840fddcb8cf86 (patch) | |
tree | 70336d28ffa2c24db5efc152af384a9fc7ab62c2 /mod/profile/views | |
parent | 5ef70cb10787266245561b016f337ba7798035ac (diff) | |
download | elgg-0cf0bca9495528ce17d544d8baa840fddcb8cf86.tar.gz elgg-0cf0bca9495528ce17d544d8baa840fddcb8cf86.tar.bz2 |
Fixed icon cache issue.
git-svn-id: https://code.elgg.org/elgg/trunk@862 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views')
-rw-r--r-- | mod/profile/views/default/profile/icon.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/profile/views/default/profile/icon.php b/mod/profile/views/default/profile/icon.php index 036786715..3e96e7d97 100644 --- a/mod/profile/views/default/profile/icon.php +++ b/mod/profile/views/default/profile/icon.php @@ -19,6 +19,12 @@ $name = htmlentities($vars['entity']->name);
$username = $vars['entity']->username;
+
+ if ($icontime = $vars['entity']->icontime) {
+ $icontime = "{$icontime}";
+ } else {
+ $icontime = "default";
+ }
// Get size
if (!in_array($vars['size'],array('small','medium','large','tiny')))
@@ -33,4 +39,4 @@ ?>
- <a href="<?php echo $vars['entity']->getURL(); ?>"><img src="<?php echo $vars['url']; ?>pg/icon/<?php echo $username; ?>/<?php echo $vars['size']; ?>/icon.jpg" border="0" <?php echo $align; ?> title="<?php echo $name; ?>" <?php echo $vars['js']; ?> /></a>
\ No newline at end of file + <a href="<?php echo $vars['entity']->getURL(); ?>"><img src="<?php echo $vars['url']; ?>pg/icon/<?php echo $username; ?>/<?php echo $vars['size']; ?>/<?php echo $icontime; ?>.jpg" border="0" <?php echo $align; ?> title="<?php echo $name; ?>" <?php echo $vars['js']; ?> /></a>
\ No newline at end of file |