bug fix
This commit is contained in:
parent
c777812ddd
commit
312e9831e2
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ getAdminMediumDeleteR mediumId = do
|
|||
runDB $ delete mediumId
|
||||
-- delete files
|
||||
liftIO $ removeFile (normalise $ tail $ mediumPath medium)
|
||||
liftIO $ removeFile (normalise $ tail $ mediumPath medium)
|
||||
liftIO $ removeFile (normalise $ tail $ mediumThumb medium)
|
||||
-- outro
|
||||
setMessage "Medium deleted successfully"
|
||||
redirect $ AdminR
|
||||
|
|
Loading…
Reference in a new issue