more warehouse_path use

This commit is contained in:
Shish
2010-02-02 01:04:38 +00:00
parent e779a880ca
commit 0d81fb0538
5 changed files with 9 additions and 13 deletions

View File

@@ -7,9 +7,8 @@
class FlashFileHandler extends DataHandlerExtension {
protected function create_thumb($hash) {
$ha = substr($hash, 0, 2);
// FIXME: scale image, as not all boards use 192x192
copy("ext/handle_flash/thumb.jpg", "thumbs/$ha/$hash");
copy("ext/handle_flash/thumb.jpg", warehouse_path("thumbs", $hash));
}
protected function supported_ext($ext) {