mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-18902 fixed whitespace, sorrrry
This commit is contained in:
parent
7467e72197
commit
702dc57b54
@ -88,7 +88,7 @@
|
||||
fwrite ($bf,full_tag("COMPLETIONDISCUSSIONS",4,false,$forum->completiondiscussions));
|
||||
fwrite ($bf,full_tag("COMPLETIONREPLIES",4,false,$forum->completionreplies));
|
||||
fwrite ($bf,full_tag("COMPLETIONPOSTS",4,false,$forum->completionposts));
|
||||
|
||||
|
||||
//if we've selected to backup users info, then execute backup_forum_suscriptions and
|
||||
//backup_forum_discussions
|
||||
if (backup_userdata_selected($preferences,'forum',$forum->id)) {
|
||||
|
@ -29,7 +29,7 @@
|
||||
$messageproviders = array (
|
||||
|
||||
/// Ordinary single forum posts
|
||||
'posts' => array (
|
||||
'posts' => array (
|
||||
),
|
||||
|
||||
/// Digests
|
||||
|
@ -201,7 +201,7 @@ function xmldb_forum_upgrade($oldversion) {
|
||||
/// forum savepoint reached
|
||||
upgrade_mod_savepoint($result, 2009042001, 'forum');
|
||||
}
|
||||
|
||||
|
||||
if ($result && $oldversion < 2009042002) {
|
||||
$trustmark = '#####TRUSTTEXT#####';
|
||||
$rs = $DB->get_recordset_sql("SELECT * FROM {forum_posts} WHERE message LIKE '$trustmark%'");
|
||||
@ -219,8 +219,8 @@ function xmldb_forum_upgrade($oldversion) {
|
||||
/// forum savepoint reached
|
||||
upgrade_mod_savepoint($result, 2009042002, 'forum');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
@ -116,19 +116,19 @@
|
||||
$learningforums[$forum->id] = $forum;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Do course wide subscribe/unsubscribe
|
||||
if (!is_null($subscribe) and !isguestuser() and !isguest()) {
|
||||
foreach ($modinfo->instances['forum'] as $forumid=>$cm) {
|
||||
$forum = $forums[$forumid];
|
||||
$modcontext = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
$modcontext = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
$cansub = false;
|
||||
|
||||
if (has_capability('mod/forum:viewdiscussion', $modcontext)) {
|
||||
$cansub = true;
|
||||
}
|
||||
if ($cansub && $cm->visible == 0 &&
|
||||
!has_capability('mod/forum:managesubscriptions', $modcontext))
|
||||
!has_capability('mod/forum:managesubscriptions', $modcontext))
|
||||
{
|
||||
$cansub = false;
|
||||
}
|
||||
|
@ -2672,7 +2672,7 @@ function forum_get_user_discussions($courseid, $userid, $groupid=0) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the list of potential subscribers to a forum.
|
||||
* Get the list of potential subscribers to a forum.
|
||||
*
|
||||
* @param object $forumcontext the forum context.
|
||||
* @param integer $groupid the id of a group, or 0 for all groups.
|
||||
|
@ -106,7 +106,7 @@
|
||||
$post->userid = $USER->id;
|
||||
$post->message = '';
|
||||
$post->messageformat = FORMAT_HTML; // TODO: better default
|
||||
$post->messagetrust = 0;
|
||||
$post->messagetrust = 0;
|
||||
|
||||
if (isset($groupid)) {
|
||||
$post->groupid = $groupid;
|
||||
@ -134,7 +134,7 @@
|
||||
print_error('invalidcoursemodule');
|
||||
}
|
||||
|
||||
// call course_setup to use forced language, MDL-6926
|
||||
// call course_setup to use forced language, MDL-6926
|
||||
course_setup($course->id);
|
||||
|
||||
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
|
@ -17,13 +17,13 @@
|
||||
onFocus="getElementById('subscriberform').add.disabled=true;
|
||||
getElementById('subscriberform').remove.disabled=false;
|
||||
getElementById('subscriberform').addselect.selectedIndex=-1;">
|
||||
<?php
|
||||
<?php
|
||||
foreach ($subscribers as $subscriber) {
|
||||
$fullname = fullname($subscriber, true);
|
||||
echo "<option value=\"$subscriber->id\">".$fullname.", ".$subscriber->email."</option>\n";
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</select></td>
|
||||
<td valign="top">
|
||||
<br />
|
||||
|
@ -28,7 +28,7 @@ if (data_submitted() and $confirm and confirm_sesskey()) {
|
||||
print_continue($return);
|
||||
print_footer();
|
||||
die;
|
||||
|
||||
|
||||
} else {
|
||||
$a = $DB->count_records('forum_subscriptions', array('userid'=>$USER->id));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user