mirror of
https://github.com/moodle/moodle.git
synced 2025-04-29 21:09:52 +02:00
Print course in footer
This commit is contained in:
parent
646d5a0281
commit
cd8d4471c8
@ -43,7 +43,7 @@
|
||||
-> $strgrades");
|
||||
setup_and_print_groups($course, $groupmode, "grades.php?id=$course->id");
|
||||
notice(get_string("nostudentsingroup"), "$CFG->wwwroot/course/view.php?id=$course->id");
|
||||
print_footer();
|
||||
print_footer($course);
|
||||
exit;
|
||||
}
|
||||
} else {
|
||||
@ -52,7 +52,7 @@
|
||||
"<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A>
|
||||
-> $strgrades");
|
||||
notice(get_string("nostudentsyet"), "$CFG->wwwroot/course/view.php?id=$course->id");
|
||||
print_footer();
|
||||
print_footer($course);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
@ -3,8 +3,8 @@
|
||||
/// Shows current group, and allows editing of the group
|
||||
/// icon and other settings related to that group
|
||||
|
||||
require_once('../config.php');
|
||||
require_once('lib.php');
|
||||
require_once('../config.php');
|
||||
require_once('lib.php');
|
||||
|
||||
require_variable($id); // Course id
|
||||
optional_variable($group); // Optionally look at other groups
|
||||
@ -104,7 +104,7 @@
|
||||
use_html_editor("description");
|
||||
}
|
||||
|
||||
print_footer();
|
||||
print_footer($course);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
print_log($course, $user, $date, "l.time DESC", 0, 500,
|
||||
"loglive.php?id=$course->id&user=$user&date=$date");
|
||||
|
||||
print_footer();
|
||||
print_footer($course);
|
||||
|
||||
exit;
|
||||
|
||||
|
@ -150,6 +150,6 @@
|
||||
|
||||
print_simple_box_end();
|
||||
|
||||
print_footer();
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
|
@ -220,6 +220,6 @@
|
||||
echo "</center>";
|
||||
}
|
||||
|
||||
print_footer();
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
|
@ -58,6 +58,6 @@
|
||||
|
||||
notice_yesno ($strunenrolsure, "unenrol.php?id=$id&user=$user->id&confirm=yes&sesskey=$USER->sesskey", "$HTTP_REFERER");
|
||||
|
||||
print_footer();
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
|
@ -3947,7 +3947,7 @@ function get_string($identifier, $module='', $a=NULL) {
|
||||
|
||||
global $course; /// Not a nice hack, but quick
|
||||
if (empty($CFG->courselang)) {
|
||||
if (!empty($course->lang)) {
|
||||
if (isset($course->lang)) {
|
||||
$CFG->courselang = $course->lang;
|
||||
}
|
||||
}
|
||||
|
@ -94,7 +94,7 @@
|
||||
|
||||
if ($choice->timeopen > time() ) {
|
||||
print_simple_box(get_string("notopenyet", "choice", userdate($choice->timeopen)), "center");
|
||||
print_footer();
|
||||
print_footer($course);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@ -143,7 +143,7 @@
|
||||
$canreply = false;
|
||||
} else {
|
||||
print_heading("Sorry, you can't see this discussion because you are not in this group");
|
||||
print_footer();
|
||||
print_footer($course);
|
||||
die;
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@
|
||||
}
|
||||
notice_yesno(get_string('noguestpost', 'forum').'<br /><br />'.get_string('liketologin'),
|
||||
$wwwroot, $_SERVER['HTTP_REFERER']);
|
||||
print_footer();
|
||||
print_footer($course);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@
|
||||
}
|
||||
notice_yesno(get_string('noguestsubscribe', 'forum').'<br /><br />'.get_string('liketologin'),
|
||||
$wwwroot, $_SERVER['HTTP_REFERER']);
|
||||
print_footer();
|
||||
print_footer($course);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@ -161,6 +161,6 @@
|
||||
|
||||
print_simple_box_end();
|
||||
|
||||
print_footer();
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
|
@ -105,7 +105,7 @@
|
||||
echo "</form>\n";
|
||||
|
||||
if (empty($quiz->popup)) {
|
||||
print_footer();
|
||||
print_footer($course);
|
||||
}
|
||||
exit;
|
||||
|
||||
|
@ -167,6 +167,6 @@
|
||||
echo '</form>';
|
||||
print_simple_box_end();
|
||||
|
||||
print_footer();
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user