equal
deleted
inserted
replaced
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; |