From 04cc7da3e423e775a79caf245ac63d2af19ea3a5 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Thu, 14 Oct 2010 10:02:32 +0000 Subject: [PATCH] MDL-20366 removing the ability to add new activities to invisible sections, I do not think we should encourage this kind of tricks --- course/format/topics/format.php | 4 ---- course/format/weeks/format.php | 4 ---- 2 files changed, 8 deletions(-) diff --git a/course/format/topics/format.php b/course/format/topics/format.php index 8edf36a6a5f..9e353067b02 100644 --- a/course/format/topics/format.php +++ b/course/format/topics/format.php @@ -277,10 +277,6 @@ if ($PAGE->user_is_editing() && has_capability('moodle/course:update', get_conte echo ''; echo '
'; print_section($course, $thissection, $mods, $modnamesused); - echo '
'; - if ($PAGE->user_is_editing()) { - print_section_add_menus($course, $section, $modnames); - } echo '
'; echo "\n"; } diff --git a/course/format/weeks/format.php b/course/format/weeks/format.php index e7c352038b2..b37ca12fcef 100644 --- a/course/format/weeks/format.php +++ b/course/format/weeks/format.php @@ -277,10 +277,6 @@ defined('MOODLE_INTERNAL') || die(); echo ''; echo '
'; print_section($course, $thissection, $mods, $modnamesused); - echo '
'; - if ($PAGE->user_is_editing()) { - print_section_add_menus($course, $section, $modnames); - } echo '
'; echo "\n"; }