Skip to content

Commit

Permalink
MDL-21782 removing oboslete tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jun 22, 2010
1 parent 8716378 commit 54632b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
12 changes: 2 additions & 10 deletions course/modedit.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
if (!empty($add)) {
$url->param('add', $add);
$PAGE->set_url($url);

$section = required_param('section', PARAM_INT);
$course = required_param('course', PARAM_INT);

Expand Down Expand Up @@ -229,7 +229,7 @@
$course = $DB->get_record('course', array('id'=>$fromform->course), '*', MUST_EXIST);
$fromform->instance = '';
$fromform->coursemodule = '';
} else {
} else {
// Update
$cm = get_coursemodule_from_id('', $fromform->coursemodule, 0, false, MUST_EXIST);
$course = $DB->get_record('course', array('id'=>$cm->course), '*', MUST_EXIST);
Expand Down Expand Up @@ -581,14 +581,6 @@
$PAGE->set_cacheable(false);
echo $OUTPUT->header();

if (!empty($cm->id)) {
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
$overridableroles = get_overridable_roles($context);
$assignableroles = get_assignable_roles($context);
$currenttab = 'update';
require($CFG->dirroot.'/'.$CFG->admin.'/roles/tabs.php');
}

if (get_string_manager()->string_exists('modulename_help', $module->name)) {
echo $OUTPUT->heading_with_help($pageheading, 'modulename', $module->name, 'icon');
} else {
Expand Down
6 changes: 0 additions & 6 deletions filter/manage.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,6 @@
$PAGE->set_title($title);
$PAGE->set_pagelayout('admin');
echo $OUTPUT->header();

// These are because of /roles/tabs.php
$currenttab = 'filters';
$assignableroles = get_assignable_roles($context, ROLENAME_BOTH);
$overridableroles = get_overridable_roles($context, ROLENAME_BOTH);
include($CFG->dirroot . '/' . $CFG->admin . '/roles/tabs.php');
}

/// Print heading.
Expand Down

0 comments on commit 54632b0

Please sign in to comment.