ajax.php
changeset 28 dd2edcdc6c03
parent 22 d0314575e2f0
child 29 e5484a9e0818
--- a/ajax.php	Wed Jun 27 00:59:42 2007 -0400
+++ b/ajax.php	Wed Jun 27 12:09:02 2007 -0400
@@ -73,7 +73,10 @@
       echo PageUtils::flushlogs($paths->cpage['urlname_nons'], $paths->namespace);
       break;
     case "deletepage":
-      echo PageUtils::deletepage($paths->cpage['urlname_nons'], $paths->namespace);
+      $reason = ( isset($_POST['reason']) ) ? $_POST['reason'] : false;
+      if ( empty($reason) )
+        die('Please enter a reason for deleting this page.');
+      echo PageUtils::deletepage($paths->cpage['urlname_nons'], $paths->namespace, $reason);
       break;
     case "delvote":
       echo PageUtils::delvote($paths->cpage['urlname_nons'], $paths->namespace);