From 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 25 Aug 2026 22:57:22 +0000
Subject: [PATCH] =It's been a minute. I went through the Routes and associated Managers and ensured they played together well. Reworked the Cache.php, and I think I caught all the references. Moving away from JVBase() root class, to individuall classes that are Instanced. Double checked for the ABSPATH check in every file, and added index.php to every directory that didn't already have it. Also still working on the MenuBlock to work with WooCommerce for now for Northeh

---
 inc/managers/ImageGenerator.php |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/inc/managers/ImageGenerator.php b/inc/managers/ImageGenerator.php
index 1a808a2..dc6479c 100644
--- a/inc/managers/ImageGenerator.php
+++ b/inc/managers/ImageGenerator.php
@@ -21,6 +21,7 @@
  *
  * Generates artist feature cards as webp images with artist information
  * Uses Imagick with GD fallback and leverages FileUploadManager storage
+ * TODO: Integrate better with UploadManager.php
  */
 class ImageGenerator
 {
@@ -146,7 +147,7 @@
 
         // Get directory structure from FileUploadManager if available
         if ($this->fileManager) {
-            $user_dir = $this->fileManager->getUploadDirectory();
+            $user_dir = $this->fileManager->generateDirectory('image', $this->data);
             $relative_dir = str_replace($base_dir, '', dirname($file_path));
             $destination_dir = $base_dir . '/' . $relative_dir;
         } else {
@@ -252,7 +253,7 @@
             $user_data = get_userdata($this->data['user_id']);
             $this->outputFilename = $this->fileManager->generateFilename(
                 $title.'.webp',
-                $user_data
+                $this->data
             );
         } else {
             // Fallback filename generation

--
Gitblit v1.10.0