ajax.php
changeset 1252 e34c23a35dc9
parent 1227 bdac73ed481e
child 1276 dac5fad7ad6a
equal deleted inserted replaced
1251:d543689ed2eb 1252:e34c23a35dc9
   451 		require_once(ENANO_ROOT.'/includes/pageutils.php');
   451 		require_once(ENANO_ROOT.'/includes/pageutils.php');
   452 		echo PageUtils::catedit($paths->page_id, $paths->namespace);
   452 		echo PageUtils::catedit($paths->page_id, $paths->namespace);
   453 		break;
   453 		break;
   454 	case "catsave":
   454 	case "catsave":
   455 		require_once(ENANO_ROOT.'/includes/pageutils.php');
   455 		require_once(ENANO_ROOT.'/includes/pageutils.php');
   456 		echo PageUtils::catsave($paths->page_id, $paths->namespace, $_POST);
   456 		$categories = !empty($_POST['categories']) ? $_POST['categories'] : array();
       
   457 		echo PageUtils::catsave($paths->page_id, $paths->namespace, $categories);
   457 		break;
   458 		break;
   458 	case "setwikimode":
   459 	case "setwikimode":
   459 		require_once(ENANO_ROOT.'/includes/pageutils.php');
   460 		require_once(ENANO_ROOT.'/includes/pageutils.php');
   460 		echo PageUtils::setwikimode($paths->page_id, $paths->namespace, (int)$_GET['mode']);
   461 		echo PageUtils::setwikimode($paths->page_id, $paths->namespace, (int)$_GET['mode']);
   461 		break;
   462 		break;