From 1be4d00d56deeff3ce75888f43d1750086a84ca7 Mon Sep 17 00:00:00 2001 From: vyshane Date: Fri, 25 Aug 2006 04:06:41 +0000 Subject: [PATCH] Previous committer missed one rename from $edit to $categoryedit. Fixed. --- course/category.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/course/category.php b/course/category.php index cd9b35ae40..ec0aff91da 100644 --- a/course/category.php +++ b/course/category.php @@ -6,17 +6,17 @@ require_once("../config.php"); require_once("lib.php"); - $id = required_param('id', PARAM_INT); // Category id - $page = optional_param('page', 0, PARAM_INT); // which page to show - $perpage = optional_param('perpage', 20, PARAM_INT); // how many per page - $categoryedit = optional_param('categoryedit', -1, PARAM_BOOL); - $hide = optional_param('hide', 0, PARAM_INT); - $show = optional_param('show', 0, PARAM_INT); - $moveup = optional_param('moveup', 0, PARAM_INT); - $movedown = optional_param('movedown', 0, PARAM_INT); - $moveto = optional_param('moveto', 0, PARAM_INT); - $rename = optional_param('rename', '', PARAM_NOTAGS); - $resort = optional_param('resort', 0, PARAM_BOOL); + $id = required_param('id', PARAM_INT); // Category id + $page = optional_param('page', 0, PARAM_INT); // which page to show + $perpage = optional_param('perpage', 20, PARAM_INT); // how many per page + $categoryedit = optional_param('categoryedit', -1, PARAM_BOOL); + $hide = optional_param('hide', 0, PARAM_INT); + $show = optional_param('show', 0, PARAM_INT); + $moveup = optional_param('moveup', 0, PARAM_INT); + $movedown = optional_param('movedown', 0, PARAM_INT); + $moveto = optional_param('moveto', 0, PARAM_INT); + $rename = optional_param('rename', '', PARAM_NOTAGS); + $resort = optional_param('resort', 0, PARAM_BOOL); if (!$site = get_site()) { error("Site isn't defined!"); @@ -31,7 +31,7 @@ } if (iscreator()) { - if ($edit !== -1) { + if ($categoryedit !== -1) { $USER->categoryediting = $categoryedit; } $navbaritem = update_category_button($category->id); -- 2.39.5