Use const for unfurl url image dir
authorjoshuaruesweg <ruesweg@woltlab.com>
Wed, 10 Mar 2021 14:02:02 +0000 (15:02 +0100)
committerjoshuaruesweg <ruesweg@woltlab.com>
Tue, 16 Mar 2021 15:19:15 +0000 (16:19 +0100)
wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php

index ba53e97b48117ae66c8749f5df16c12e49713b07..78e6e62e3f1c3bdfd230bad581560df9a4cfdafd 100644 (file)
@@ -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);