Forced naming of pictures


I have a lot of lazy users, who doesn't use time to name their pictures. To get around that I have placed an extra line in /mod/tidypics/actions/upload.php for forced naming.

This line goes in around line 143:

$file->title = substr($name,0,strrpos($name,"."));

Users can always change the name of the picture, and I get rid of all the "unnamed" pictures.

Maybe something to add to the official release?