Show
Ignore:
Timestamp:
09/01/10 15:44:14 (21 months ago)
Author:
gnum
Message:

References #100, the second subtask is done, also created a unified standalone comment view, similar logic should be used for any piece of very similar code, unless there are one too many custom cases to handle

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/actions/ajax/add_facilitator.php

    r139 r155  
    1616        // Check if data is provided 
    1717        if ($facilitator && $educourse->getSubtype() == 'educourse' && edufeedrCanManageEducourse($educourse)) { 
    18  
    19                 /* XXX WE DO NOT INSERT FACILITATOR AS TEACHER YET 
    20                 $es = new EduSuckr; 
    21                 $query = insert_data("INSERT INTO {$CONFIG->dbprefix}edufeedr_course_participants (course_guid, firstname, lastname, email, blog, posts, comments, status) VALUES (".$educourse->getGUID().", 'Course', 'Blog', '".$teacher->email."', '$course_blog', '".$pc['posts']."', '".$pc['comments']."', 'teacher')"); 
    22         $teacher_data = array( 
    23                 'participant_id' => $participant_id, 
    24                 'course_guid' => $educourse->getGUID(), 
    25                 'firstname' => "Course", 
    26                 'lastname' => "Blog", 
    27                 'email' => $teacher->email, 
    28                 'blog' => $course_blog, 
    29                 'posts' => $pc['posts'], 
    30                 'comments' => $pc['comments'], 
    31                 'status' => 'teacher' 
    32                 ); 
    33                  */ 
    3418                // Check if that facilitator has already been added to the course 
    3519                $added_check = get_data("SELECT id from {$CONFIG->dbprefix}edufeedr_course_facilitators WHERE course_guid = {$educourse->getGUID()} and user_guid = {$facilitator->getGUID()}");