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;
}
}
}
function common_timestamp() {
- return date('YmdHisu');
+ return date('YmdHis');
}
// XXX: set up gettext