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
|
runDB $ delete mediumId
|
||||||
-- delete files
|
-- delete files
|
||||||
liftIO $ removeFile (normalise $ tail $ mediumPath medium)
|
liftIO $ removeFile (normalise $ tail $ mediumPath medium)
|
||||||
liftIO $ removeFile (normalise $ tail $ mediumPath medium)
|
liftIO $ removeFile (normalise $ tail $ mediumThumb medium)
|
||||||
-- outro
|
-- outro
|
||||||
setMessage "Medium deleted successfully"
|
setMessage "Medium deleted successfully"
|
||||||
redirect $ AdminR
|
redirect $ AdminR
|
||||||
|
|
Loading…
Reference in a new issue