From: tjhunt
Date: Mon, 30 Jul 2007 22:14:32 +0000 (+0000)
Subject: MDL-10661 - another bloody invisiblefieldset bug. Merged from MOODLE_18_STABLE.
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d349d4f0e12b3e22d125e820817aa2dc048e384d;p=moodle.git
MDL-10661 - another bloody invisiblefieldset bug. Merged from MOODLE_18_STABLE.
---
diff --git a/question/category_class.php b/question/category_class.php
index 772d3c27e6..d6a9864e1d 100644
--- a/question/category_class.php
+++ b/question/category_class.php
@@ -279,26 +279,16 @@ class question_category_object {
function edit_single_category($categoryid) {
/// Interface for adding a new category
- global $USER, $COURSE;
+ global $CFG, $USER, $COURSE;
/// Interface for editing existing categories
if ($category = get_record("question_categories", "id", $categoryid)) {
- echo '';
- echo $this->str->edit;
- helpbutton("categories_edit", $this->str->editcategory, "quiz");
- echo '
';
- echo '';
+ print_heading_with_help($this->str->edit, 'categories_edit', 'quiz');
$this->output_edit_single_table($category);
- echo ' |
';
- //cancel button
- echo '
';
+ echo '';
+ print_single_button($CFG->wwwroot . '/question/category.php',
+ $this->pageurl->params, $this->str->cancel);
+ echo '
';
print_footer($COURSE);
exit;
} else {
@@ -355,8 +345,8 @@ class question_category_object {
// wrap the table in a form and output it
echo '