Skip to content

Commit

Permalink
Some last minute tweaks to get the new avatar system working.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfly committed Sep 2, 2015
1 parent 6f3cc9e commit a62ec4d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
4 changes: 0 additions & 4 deletions secrets/upload/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions secrets/upload/declined/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions secrets/upload/old/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion webroot/results/includes/_framework.php
Expand Up @@ -225,6 +225,6 @@ function getCurrentPictureFile ($personId) {
return "/uploads/user/avatar/${personId}/${user['avatar']}";
}
# Match only filenames that end in a number (to avoid 1234_thumb.png)
$files = glob("uploads/user/avatar/${personId}/*[0-9].{jpg,jpeg,gif,png}");
$files = glob("uploads/user/avatar/${personId}/*[0-9].*");
return $files ? "/" . end($files) : FALSE;
}

0 comments on commit a62ec4d

Please sign in to comment.