MDL-20366 removing the ability to add new activities to invisible sections, I do...
authorPetr Skoda <skodak@moodle.org>
Thu, 14 Oct 2010 10:02:32 +0000 (10:02 +0000)
committerPetr Skoda <skodak@moodle.org>
Thu, 14 Oct 2010 10:02:32 +0000 (10:02 +0000)
course/format/topics/format.php
course/format/weeks/format.php

index 8edf36a..9e35306 100644 (file)
@@ -277,10 +277,6 @@ if ($PAGE->user_is_editing() && has_capability('moodle/course:update', get_conte
         echo '</div>';
         echo '<div class="content">';
         print_section($course, $thissection, $mods, $modnamesused);
-        echo '<br />';
-        if ($PAGE->user_is_editing()) {
-            print_section_add_menus($course, $section, $modnames);
-        }
         echo '</div>';
         echo "</li>\n";
     }
index e7c3520..b37ca12 100644 (file)
@@ -277,10 +277,6 @@ defined('MOODLE_INTERNAL') || die();
             echo '</div>';
             echo '<div class="content">';
             print_section($course, $thissection, $mods, $modnamesused);
-            echo '<br />';
-            if ($PAGE->user_is_editing()) {
-                print_section_add_menus($course, $section, $modnames);
-            }
             echo '</div>';
             echo "</li>\n";
         }