Commit e0cce107 authored by Evan Prodromou's avatar Evan Prodromou

better timestamped avatar filenames

darcs-hash:20080528143030-84dde-c698588b2db9e36a576c402ba685b5d205396948.gz
parent aed137fa
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment