MDL-9213 Corrected $forum->format to $forum->type

This commit is contained in:
nicolasconnault 2007-04-11 01:05:28 +00:00
parent f71a7f8f37
commit 632730fdd7
3 changed files with 6 additions and 2 deletions

View File

@ -9,6 +9,7 @@ $string['browserepository'] = 'Browse repository';
$string['choose'] = 'Choose';
$string['chooseafile'] = 'Choose or upload a file';
$string['chooseparameter'] = 'Choose parameter';
$string['clicktoopen'] = 'To open this document, click on this link: ';
$string['configallowlocalfiles'] = 'When creating a new file resource, allow links to files on a local file system such as a CD drive or a hard drive. This may be useful in a classroom where all students have access to a common network drive or where files on a CD need to be accessed. Use of this feature may require changes to your browser\'s security settings.';
$string['configautofilerenamesettings'] = 'Automatically update references to files and directories when renamed in file manager.';
$string['configblockdeletingfilesettings'] = 'Block deleting of files and directories referenced by resources. Please note that images and other files referenced from html are not protected.';
@ -48,6 +49,7 @@ $string['frameifpossible'] = 'Put resource in a frame to keep site navigation vi
$string['fulltext'] = 'Full text';
$string['htmlfragment'] = 'HTML fragment';
$string['imspackageloaded'] = 'Package loaded';
$string['keepnavigationvisible'] = 'Keep page navigation visible on the same page';
$string['localfile'] = 'Local file';
$string['localfilechoose'] = 'Choose a local file (CD-ROM)';
$string['localfilehelp'] = 'Help displaying local files';

View File

@ -1617,7 +1617,9 @@ function data_user_can_add_entry($data, $currentgroup=false, $groupmode='') {
} else {
//else it might be group 0 in visible mode
if ($groupmode == VISIBLEGROUPS){
return (ismember($currentgroup));
$result = groups_is_member($currentgroup);
return $result;
} else {
return true;
}

View File

@ -115,7 +115,7 @@ function forum_add_instance($forum) {
$discussion->name = $forum->name;
$discussion->intro = $forum->intro;
$discussion->assessed = $forum->assessed;
$discussion->format = $forum->format;
$discussion->format = $forum->type;
$discussion->mailnow = false;
if (! forum_add_discussion($discussion, $discussion->intro)) {