Skip to content

Commit

Permalink
bug fix when removing featured image
Browse files Browse the repository at this point in the history
  • Loading branch information
samberrry committed Jan 29, 2021
1 parent 3ab12c2 commit 0062528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/HessamAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ public function update_post(UpdateHessamCMSPostRequest $request, $blogPostId)
public function remove_photo($postSlug, $lang_id)
{
$post = HessamPostTranslation::where([
"slug", '=', $postSlug,
'lang_id', '=', $lang_id
["slug", '=', $postSlug],
['lang_id', '=', $lang_id]
])->firstOrFail();

$path = public_path('/' . config("hessamcms.blog_upload_dir"));
Expand Down

0 comments on commit 0062528

Please sign in to comment.