Skip to content

Commit

Permalink
fix: corrected paths to category images
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Feb 6, 2024
1 parent 1cb0ec6 commit 033f8fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpmyfaq/src/phpMyFAQ/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public function getHomeCategories(): array
if ('' === $row['image']) {
$image = '';
} else {
$image = 'images/' . $row['image'];
$image = 'content/user/images/' . $row['image'];
}

$category = [
Expand Down
2 changes: 1 addition & 1 deletion phpmyfaq/src/phpMyFAQ/Category/CategoryImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
class CategoryImage
{
/** @var string */
private const UPLOAD_DIR = PMF_ROOT_DIR . '/images/';
private const UPLOAD_DIR = PMF_CONTENT_DIR . '/user/images/';

private bool $isUpload = false;

Expand Down

0 comments on commit 033f8fc

Please sign in to comment.