Skip to content

Commit

Permalink
MDL-9213 Corrected $forum->format to $forum->type
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Apr 11, 2007
1 parent d4c97b7 commit 479206f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions lang/en_utf8/resource.php
Expand Up @@ -9,6 +9,7 @@
$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.';
Expand Down
4 changes: 3 additions & 1 deletion mod/data/lib.php
Expand Up @@ -1510,7 +1510,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;
}
Expand Down
2 changes: 1 addition & 1 deletion mod/forum/lib.php
Expand Up @@ -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)) {
Expand Down

0 comments on commit 479206f

Please sign in to comment.