Changed "images" and "thumbs" usages to constants

This commit is contained in:
Matthew Barbour
2019-06-15 11:18:52 -05:00
committed by matthew
parent 4ade0090cc
commit 37fe743f65
15 changed files with 40 additions and 33 deletions

View File

@@ -237,7 +237,7 @@ class AdminPage extends Extension
$zip = new ZipArchive;
if ($zip->open($filename, ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE) === true) {
foreach ($images as $img) {
$img_loc = warehouse_path("images", $img["hash"], false);
$img_loc = warehouse_path(Image::IMAGE_DIR, $img["hash"], false);
$zip->addFile($img_loc, $img["hash"].".".$img["ext"]);
}
$zip->close();