BIG FEATURE - MULTIPLE GROUPS

Users can now be assigned to multiple groups.  Thanks Yu!
Break out the Bob Marley!!

Otherwise groups work more or less like they did before.

This has been pretty well tested by Yu and myself, but since Yu started
uncovering lots of existing groups bugs it's possible there may be still
a few corner cases still lurking here and there.

Please help test this thoroughly for 1.6!!
This commit is contained in:
moodler
2005-11-08 07:19:27 +00:00
parent fe59ecbff9
commit fa22fd5fff
16 changed files with 384 additions and 105 deletions
+5 -5
View File
@@ -19,8 +19,6 @@
/// Only want to add edit log entries if we have made some changes ie submitted a form
$editsave = optional_param('thankyou');
if ($id) {
if (! $cm = get_record("course_modules", "id", $id)) {
@@ -37,6 +35,7 @@
} else {
if (! $wiki = get_record("wiki", "id", $wid)) {
echo "here?";
error("Course module is incorrect");
}
if (! $course = get_record("course", "id", $wiki->course)) {
@@ -62,9 +61,8 @@
/// Globally disable CamelCase, if the option is selected for this wiki.
$moodle_disable_camel_case = ($wiki->disablecamelcase == 1);
if (($wiki_entry = wiki_get_default_entry($wiki, $course, $userid, $groupid))) {
/// ################# EWIKI Part ###########################
/// The wiki_entry->pagename is set to the specified value of the wiki,
/// or the default value in the 'lang' file if the specified value was empty.
@@ -215,6 +213,7 @@
else {
$content = '';
$content2 = '<div align="center">'.get_string('nowikicreated', 'wiki').'</div>';
}
# Group wiki, ...: No page and no ewiki_title
@@ -250,10 +249,11 @@
/// Print Page
echo ' <div id="wikiPageActions">
';
/// The top row contains links to other wikis, if applicable.
if ($wiki_list = wiki_get_other_wikis($wiki, $USER, $course, $wiki_entry->id)) {
//echo "wiki list ";print_r($wiki_list);
$selected="";
if (isset($wiki_list['selected'])) {
$selected = $wiki_list['selected'];
unset($wiki_list['selected']);