From: Evan Prodromou Date: Wed, 28 May 2008 14:30:30 +0000 (-0400) Subject: better timestamped avatar filenames X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e0cce107bf148cf4282e8262845b746baec279ce;p=quix0rs-gnu-social.git better timestamped avatar filenames darcs-hash:20080528143030-84dde-c698588b2db9e36a576c402ba685b5d205396948.gz --- diff --git a/lib/util.php b/lib/util.php index 86c71abb75..268c9ef2c9 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