Print course in footer

This commit is contained in:
gustav_delius 2005-03-17 15:12:07 +00:00
parent 646d5a0281
commit cd8d4471c8
14 changed files with 17 additions and 17 deletions

View File

@ -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;
}
}

View File

@ -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;
}

View File

@ -36,7 +36,7 @@
print_log($course, $user, $date, "l.time DESC", 0, 500,
"loglive.php?id=$course->id&amp;user=$user&amp;date=$date");
print_footer();
print_footer($course);
exit;

View File

@ -150,6 +150,6 @@
print_simple_box_end();
print_footer();
print_footer($course);
?>

View File

@ -220,6 +220,6 @@
echo "</center>";
}
print_footer();
print_footer($course);
?>

View File

@ -58,6 +58,6 @@
notice_yesno ($strunenrolsure, "unenrol.php?id=$id&amp;user=$user->id&amp;confirm=yes&amp;sesskey=$USER->sesskey", "$HTTP_REFERER");
print_footer();
print_footer($course);
?>

View File

@ -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;
}
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -161,6 +161,6 @@
print_simple_box_end();
print_footer();
print_footer($course);
?>

View File

@ -105,7 +105,7 @@
echo "</form>\n";
if (empty($quiz->popup)) {
print_footer();
print_footer($course);
}
exit;

View File

@ -167,6 +167,6 @@
echo '</form>';
print_simple_box_end();
print_footer();
print_footer($course);
?>