build warehouse directories on demand

This commit is contained in:
Shish
2010-03-15 04:31:28 +00:00
parent d0d3e72b74
commit 7a5be72cbd
7 changed files with 17 additions and 19 deletions

View File

@@ -8,6 +8,7 @@
class FlashFileHandler extends DataHandlerExtension {
protected function create_thumb($hash) {
// FIXME: scale image, as not all boards use 192x192
mkdir(dirname(warehouse_path("thumbs", $hash)), 0755, true);
copy("ext/handle_flash/thumb.jpg", warehouse_path("thumbs", $hash));
}