Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Fix for user avatar image path

givanz6294de98cdc3
diff --git a/admin/controller/content/comments.php b/admin/controller/content/comments.php
index 4cc9431..b708693 100755
--- a/admin/controller/content/comments.php
+++ b/admin/controller/content/comments.php
@@ -96,6 +96,10 @@ class Comments extends Listing {
$comment['image'] = Images::image($type, $comment['image']);
}
+ if (isset($comment['avatar'])) {
+ $comment['avatar'] = Images::image($comment['avatar'], 'user');
+ }
+
$url = ['module' => "$module/$listController", 'action' => 'save', 'status' => $status, $type . '_id' => $comment[$type . '_id']];
$postUrl = ['module' => "$module/$controller", $type . '_id' => $comment[$type . '_id']];
$comment['edit-url'] = \Vvveb\url($postUrl);