From 76280fd48806ebbae868f9bdd4c2e62eebcd9a49 Mon Sep 17 00:00:00 2001 From: Tom Pitcher Date: Wed, 3 Apr 2024 21:13:42 +0100 Subject: [PATCH] Use storage path if override has been set with useStoragePath() --- src/Core/Application.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Core/Application.php b/src/Core/Application.php index ea257537..2c698a6f 100644 --- a/src/Core/Application.php +++ b/src/Core/Application.php @@ -580,6 +580,10 @@ public function configPath($path = '') */ public function storagePath($path = '') { + if ($this->storagePath) { + return $this->storagePath . ($path ? DIRECTORY_SEPARATOR . $path : $path); + } + if (defined('THEMOSIS_ROOT')) { return $this->rootPath('storage') . ($path ? DIRECTORY_SEPARATOR . $path : $path); }