ajax.php
changeset 378 c1c7fa6b329f
parent 345 4ccdfeee9a11
child 387 92664d2efab8
equal deleted inserted replaced
377:bb3e6c3bd4f4 378:c1c7fa6b329f
   289       echo PageUtils::flushlogs($paths->page_id, $paths->namespace);
   289       echo PageUtils::flushlogs($paths->page_id, $paths->namespace);
   290       break;
   290       break;
   291     case "deletepage":
   291     case "deletepage":
   292       $reason = ( isset($_POST['reason']) ) ? $_POST['reason'] : false;
   292       $reason = ( isset($_POST['reason']) ) ? $_POST['reason'] : false;
   293       if ( empty($reason) )
   293       if ( empty($reason) )
   294         die('Please enter a reason for deleting this page.');
   294         die($lang->get('page_err_need_reason'));
   295       echo PageUtils::deletepage($paths->page_id, $paths->namespace, $reason);
   295       echo PageUtils::deletepage($paths->page_id, $paths->namespace, $reason);
   296       break;
   296       break;
   297     case "delvote":
   297     case "delvote":
   298       echo PageUtils::delvote($paths->page_id, $paths->namespace);
   298       echo PageUtils::delvote($paths->page_id, $paths->namespace);
   299       break;
   299       break;