if no projects have any images, don't generate spritesheet

This commit is contained in:
mappu 2015-04-05 16:51:52 +12:00
parent 671573bc2e
commit 441c05f096
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,4 @@
- If no projects have any images, don't generate spritesheet
- Merge "written in" and "tags"
- RSS for recent changes

View File

@ -421,8 +421,10 @@ function buildcommon() {
// Build homepage spritesheet
if (count($handles)) {
mkspritesheet($handles, BASEDIR.'wwwroot/logos.jpg', INDEX_THUMB_W, INDEX_THUMB_H);
array_map('imagedestroy', $handles); // free
}
// Build index page