changeset 25:c698618e6f67

Actually implement deletion.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 14 Oct 2015 10:39:38 +0300
parents 7f5209a6f7e0
children 59cf3acc4440
files mgtool.php
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mgtool.php	Tue Sep 15 09:59:23 2015 +0300
+++ b/mgtool.php	Wed Oct 14 10:39:38 2015 +0300
@@ -762,7 +762,13 @@
     echo "--\n";
     if (mgYesNoPrompt("Really delete the above files and directories?"))
     {
-      echo "OKAY.\n";
+      echo "Deleting ...\n";
+      $flagDoDelete = TRUE;
+      mgProcessGalleries(GCMD_CLEAN, mgCArg(3));
+    }
+    else
+    {
+      echo "Okay, canceling operation.\n";
     }
     break;