summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-28 10:30:30 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-28 10:30:30 -0400
commite0cce107bf148cf4282e8262845b746baec279ce (patch)
tree84af5bba1153ddd640f0ed20016a6c38b724085c /lib
parentaed137fae3c943b5e2710e608b1f4402755d8032 (diff)
better timestamped avatar filenames
darcs-hash:20080528143030-84dde-c698588b2db9e36a576c402ba685b5d205396948.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util.php b/lib/util.php
index 86c71abb7..268c9ef2c 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -353,9 +353,9 @@ function common_avatar_filename($user, $extension, $size=NULL, $extra=NULL) {
global $config;
if ($size) {
- return $user->id . '-' . $size . (($extra) ? $extra : '') . $extension;
+ return $user->id . '-' . $size . (($extra) ? ('-' . $extra) : '') . $extension;
} else {
- return $user->id . '-original' . (($extra) ? $extra : '') . $extension;
+ return $user->id . '-original' . (($extra) ? ('-' . $extra) : '') . $extension;
}
}
@@ -480,7 +480,7 @@ function common_mtrand($bytes) {
}
function common_timestamp() {
- return date('YmdHisu');
+ return date('YmdHis');
}
// XXX: set up gettext