diff options
author | piernov <piernov@piernov.org> | 2016-05-02 20:15:15 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2016-05-02 20:15:15 +0200 |
commit | adb3df3d85ee081fd961602397d11186de08fef0 (patch) | |
tree | c7bdb380ead629770f79b80dd0e4d895ed067c77 /inc/savegame.inc | |
parent | cbfbedcaceccda890a7f15cb806561ede72e8044 (diff) | |
parent | bb029a5feff5c3d284ef8d509c116eee345c13b9 (diff) | |
download | candybox-adb3df3d85ee081fd961602397d11186de08fef0.tar.gz candybox-adb3df3d85ee081fd961602397d11186de08fef0.tar.bz2 candybox-adb3df3d85ee081fd961602397d11186de08fef0.tar.xz candybox-adb3df3d85ee081fd961602397d11186de08fef0.zip |
Merge branch 'feat/savegame' of piernov.org:/srv/git/candybox into feat/savegame
Diffstat (limited to 'inc/savegame.inc')
-rw-r--r-- | inc/savegame.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/savegame.inc b/inc/savegame.inc index 0dfb1c8..1fa95b0 100644 --- a/inc/savegame.inc +++ b/inc/savegame.inc @@ -75,8 +75,8 @@ function deleteSave() { if(empty($_POST["filename"])) return; $path = SAVEDIR . "/" . basename($_POST["filename"]); // remove any leading directory if(file_exists($path) && unlink($path)) - sendError("gamesave_delete_failed"); - else sendInfo("gamesave_delete_success"); + sendInfo("gamesave_delete_success"); + else sendError("gamesave_delete_fail"); } function loadSave() { |