From 9ac503147c2e62d122c2afeadede4590462ec290 Mon Sep 17 00:00:00 2001 From: defacer Date: Thu, 29 Apr 2004 10:28:58 +0000 Subject: [PATCH] Fix for bug #1280: the "showrecent" course setting has to go. Updated script and editing page. --- course/edit.html | 30 ++++++++++-------------------- course/edit.php | 11 +++++------ 2 files changed, 15 insertions(+), 26 deletions(-) diff --git a/course/edit.html b/course/edit.html index aedce100b8..db59781d9e 100644 --- a/course/edit.html +++ b/course/edit.html @@ -11,7 +11,7 @@ - - - - - - - - @@ -203,24 +193,24 @@ diff --git a/course/edit.php b/course/edit.php index 420bf1df59..5565402eea 100644 --- a/course/edit.php +++ b/course/edit.php @@ -80,7 +80,7 @@ redirect("teacher.php?id=$newcourseid", get_string("changessaved")); } else { // Add current teacher and send to course - + $newteacher = NULL; $newteacher->userid = $USER->id; $newteacher->course = $newcourseid; @@ -106,7 +106,7 @@ foreach ($err as $key => $value) { $focus = "form.$key"; } - + } } @@ -125,7 +125,6 @@ $form->guest = 0; $form->numsections = 10; $form->newsitems = 5; - $form->showrecent = 1; $form->showgrades = 1; $form->groupmode = 0; $form->groupmodeforce = 0; @@ -168,8 +167,8 @@ $strcategories = get_string("categories"); if (!empty($course)) { - print_header($streditcoursesettings, "$course->fullname", - "wwwroot/course/view.php?id=$course->id\">$course->shortname + print_header($streditcoursesettings, "$course->fullname", + "wwwroot/course/view.php?id=$course->id\">$course->shortname -> $streditcoursesettings", $focus); } else { print_header("$site->shortname: $straddnewcourse", "$site->fullname", @@ -184,7 +183,7 @@ print_footer($course); - if ($usehtmleditor) { + if ($usehtmleditor) { use_html_editor(); } -- 2.39.5

:

:

summary); helpbutton("text", get_string("helptext")); - if (isset($err["summary"])) formerr($err["summary"]); + if (isset($err["summary"])) formerr($err["summary"]); ?>

:

courseformats, "format", "$form->format", ""); helpbutton("courseformats", get_string("courseformats")); ?> @@ -128,7 +128,7 @@

:

:

showrecent, ""); - helpbutton("courserecent", get_string("recentactivity")); ?> -

:

:

- () + ()

:

- () + ()

:

- () + ()

:

- lang, "", "", ""); + choose_from_menu ($languages, "lang", $form->lang, "", "", ""); ?>