if no projects have any images, don't generate spritesheet
This commit is contained in:
parent
671573bc2e
commit
441c05f096
2
TODO.txt
2
TODO.txt
@ -1,6 +1,4 @@
|
||||
|
||||
- If no projects have any images, don't generate spritesheet
|
||||
|
||||
- Merge "written in" and "tags"
|
||||
|
||||
- RSS for recent changes
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user