]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18902 fixed whitespace, sorrrry
authorskodak <skodak>
Mon, 20 Apr 2009 11:49:26 +0000 (11:49 +0000)
committerskodak <skodak>
Mon, 20 Apr 2009 11:49:26 +0000 (11:49 +0000)
mod/forum/backuplib.php
mod/forum/db/messages.php
mod/forum/db/upgrade.php
mod/forum/index.php
mod/forum/lib.php
mod/forum/post.php
mod/forum/subscriber.html
mod/forum/unsubscribeall.php

index 89a4ef251f9c12bc4210b021d3ca087d2e7e5b01..1b13717a99abcf89e52185f00e1badf578afe62c 100644 (file)
@@ -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)) {
index a584d2c9a134b9194fd704dec42f5829ae70d96d..be2b995894e6969d877e97c377c7e0fdfb7f62e8 100644 (file)
@@ -29,7 +29,7 @@
 $messageproviders = array (
 
 /// Ordinary single forum posts
-    'posts' => array ( 
+    'posts' => array (
     ),
 
 /// Digests
index a40069b1dc294c617afb1ecab1cf8b0fe58e3f5a..7892b8e6a81b62ada9c7f42d129a7782202a121d 100644 (file)
@@ -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;
 }
 
index c137529c07c61828529cfe0e114d6e05d85fa56c..0ccc9670492c52ddf66ee5c3a2a7324072020a86 100644 (file)
             $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;
             }
index 1645e5cba076905d6ae3334260caaa2351cbbe87..c76ce612745fb1ba75d6cff5a59ee7fc8d768956 100644 (file)
@@ -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.
index 60674e635d91cd9d67a09936f5a21546af4e6fde..cea697d9aa8e952053cbfaffae7d85bac0012e0e 100644 (file)
         $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;
             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);
index 1023dc0185d836ff2d930f4f711e0de58fc4bf7a..4fe214e8ca51f0033995b33a8694503922556506 100644 (file)
                   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 />
index 5cd684551b5b15154caf1949db4ea7716fd75bfd..4bfbd64c95e7f51d9f48c3cd7ff4946e8a3f9f36 100644 (file)
@@ -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));