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

@@ -91,9 +91,8 @@ class IcoFileHandler extends SimpleExtension {
private function create_thumb($hash) {
global $config;
$ha = substr($hash, 0, 2);
$inname = "images/$ha/$hash";
$outname = "thumbs/$ha/$hash";
$inname = warehouse_path("images", $hash);
$outname = warehouse_path("thumbs", $hash);
$w = $config->get_int("thumb_width");
$h = $config->get_int("thumb_height");