Skip to content

Commit

Permalink
Merge branch 'MDL-38369-24' of git://github.com/FMCorz/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_24_STABLE
  • Loading branch information
danpoltawski committed May 20, 2013
2 parents a1972f5 + a67e827 commit 6336c04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions repository/manage_instances.php
Expand Up @@ -142,7 +142,6 @@
/// Display page header
$PAGE->set_title($title);
$PAGE->set_heading($fullname);
echo $OUTPUT->header();

if ($context->contextlevel == CONTEXT_USER) {
if ( !$course = $DB->get_record('course', array('id'=>$usercourseid))) {
Expand Down Expand Up @@ -196,13 +195,13 @@
}
if ($success) {
$savedstr = get_string('configsaved', 'repository');
echo $OUTPUT->heading($savedstr);
redirect($baseurl);
} else {
print_error('instancenotsaved', 'repository', $baseurl);
}
exit;
} else { // Display the form
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('configplugin', 'repository_'.$plugin));
$OUTPUT->box_start();
$mform->display();
Expand All @@ -224,18 +223,19 @@
}
if ($instance->delete()) {
$deletedstr = get_string('instancedeleted', 'repository');
echo $OUTPUT->heading($deletedstr);
redirect($baseurl, $deletedstr, 3);
} else {
print_error('instancenotdeleted', 'repository', $baseurl);
}
exit;
}
echo $OUTPUT->header();
$formcontinue = new single_button(new moodle_url($baseurl, array('delete' => $delete, 'sure' => 'yes')), get_string('yes'));
$formcancel = new single_button($baseurl, get_string('no'));
echo $OUTPUT->confirm(get_string('confirmdelete', 'repository', $instance->name), $formcontinue, $formcancel);
$return = false;
} else {
echo $OUTPUT->header();
repository::display_instances_list($context);
$return = false;
}
Expand Down

0 comments on commit 6336c04

Please sign in to comment.