From ffd5f260ca7082e8835c08328bb054daaa328a05 Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Wed, 10 Mar 2021 15:02:02 +0100 Subject: [PATCH] Use const for unfurl url image dir --- .../lib/system/background/job/UnfurlUrlBackgroundJob.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php index ba53e97b48..78e6e62e3f 100644 --- a/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php @@ -194,7 +194,7 @@ final class UnfurlUrlBackgroundJob extends AbstractBackgroundJob { $imageHash = \sha1($image); - $path = WCF_DIR . 'images/unfurlUrl/' . \substr($imageHash, 0, 2); + $path = WCF_DIR . UnfurlUrl::IMAGE_DIR . \substr($imageHash, 0, 2); FileUtil::makePath($path); $extension = $this->getImageExtension($imageData); -- 2.20.1