index.php
changeset 1252 e34c23a35dc9
parent 1250 d2db9f3628ab
child 1290 27ab1b13a783
equal deleted inserted replaced
1251:d543689ed2eb 1252:e34c23a35dc9
   320 		echo '<p>'.$result.' <a href="'.makeUrl($paths->page).'">' . $lang->get('etc_return_to_page') . '</a></p>';
   320 		echo '<p>'.$result.' <a href="'.makeUrl($paths->page).'">' . $lang->get('etc_return_to_page') . '</a></p>';
   321 		$template->footer();
   321 		$template->footer();
   322 		break;
   322 		break;
   323 	case 'catedit':
   323 	case 'catedit':
   324 		require_once(ENANO_ROOT.'/includes/pageutils.php');
   324 		require_once(ENANO_ROOT.'/includes/pageutils.php');
   325 		if(isset($_POST['__enanoSaveButton']))
   325 		if(isset($_POST['save']))
   326 		{
   326 		{
   327 			unset($_POST['__enanoSaveButton']);
   327 			unset($_POST['save']);
   328 			$val = PageUtils::catsave($paths->page_id, $paths->namespace, $_POST);
   328 			$val = PageUtils::catsave($paths->page_id, $paths->namespace, $_POST['categories']);
   329 			if($val == 'GOOD')
   329 			if($val == 'GOOD')
   330 			{
   330 			{
   331 				header('Location: '.makeUrl($paths->page)); echo '<html><head><title>Redirecting...</title></head><body>If you haven\'t been redirected yet, <a href="'.makeUrl($paths->page).'">click here</a>.'; break;
   331 				header('Location: '.makeUrl($paths->page)); echo '<html><head><title>Redirecting...</title></head><body>If you haven\'t been redirected yet, <a href="'.makeUrl($paths->page).'">click here</a>.'; break;
   332 			} else {
   332 			} else {
   333 				die_friendly('Error saving category information', '<p>'.$val.'</p>');
   333 				die_friendly('Error saving category information', '<p>'.$val.'</p>');