move warehouse directory creation into a single place

This commit is contained in:
Shish
2010-04-23 05:46:07 +01:00
parent ee292c2a25
commit 2c1fa2fd7f
6 changed files with 4 additions and 7 deletions

View File

@ -8,7 +8,6 @@
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));
}