private function DeleteCategory() { include_once ISC_BASE_PATH . '/lib/api/category.api.php'; $category = new API_CATEGORY(); if ($category->multiDelete($_POST['categories'])) { // Log this action $GLOBALS['ISC_CLASS_LOG']->LogAdminAction(count($_POST['categories'])); ob_end_clean(); header("Location: index.php?ToDo=viewCategories&d=1"); die; } else { echo $category->error; } }
private function DeleteCategory() { include_once ISC_BASE_PATH . '/lib/api/category.api.php'; $category = new API_CATEGORY(); if ($category->multiDelete($_POST['categories'])) { // Log this action $GLOBALS['ISC_CLASS_LOG']->LogAdminAction(count($_POST['categories'])); //delete category brand cache file,let it rebuild. NI_Mike 2010.11.25 $this->UpdateCategoryBrandProductCache(); ob_end_clean(); header("Location: index.php?ToDo=viewCategories&d=1"); die; } else { echo $category->error; } }