--- 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);