Skip to content

Commit

Permalink
Fix shop offer relative path. Fix #95
Browse files Browse the repository at this point in the history
  • Loading branch information
Raggaer committed Jun 25, 2018
1 parent 58924d4 commit ec6f519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/admin/shop/offer/new/post.lua
Expand Up @@ -67,7 +67,7 @@ function post()
end

offerImage:saveFileAsPNG("public/images/offer-images/" .. http.postValues["offer-name"] .. ".png", 32, 32)
offerImagePath = "public/images/offer-images/" .. http.postValues["offer-name"] .. ".png"
offerImagePath = "/images/offer-images/" .. http.postValues["offer-name"] .. ".png"
end

db:execute(
Expand Down

0 comments on commit ec6f519

Please sign in to comment.