[moodle] / contrib / plugins / grade / report / stats / lib.php Repository:

Diff of /contrib/plugins/grade/report/stats/lib.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3, Thu Jun 19 15:29:54 2008 WST revision 1.4, Tue Jul 1 15:09:35 2008 WST

By dservos:

CONTRIB-496 Removed a temporary work around for a bug that has been fixed in the moodle 2.X core.

# Line 134  Line 134 
134              if(is_callable(array($this, 'setup_groups'))) {              if(is_callable(array($this, 'setup_groups'))) {
135                  $this->setup_groups();                  $this->setup_groups();
136              } else {              } else {
137                  $this->local_setup_groups();                  $this->setup_groups();
138              }              }
139          }          }
140    
# Line 186  Line 186 
186      public function process_data($data){}      public function process_data($data){}
187      public function process_action($target, $action){}      public function process_action($target, $action){}
188    
     /// Tempary fix intill issue MDL-15253 is fixed  
     private function local_setup_groups() {  
         global $CFG;  
   
         /// find out current groups mode  
         $this->group_selector = groups_print_course_menu($this->course, $this->pbarurl, true);  
         $this->currentgroup = groups_get_course_group($this->course);  
   
         if ($this->currentgroup) {  
             $this->groupsql = " LEFT JOIN {groups_members} gm ON gm.userid = u.id ";  
             $this->groupwheresql = " AND gm.groupid = ? ";  
             $this->groupwheresql_params = array($this->currentgroup);  
         }  
     }  
   
189      /**      /**
190       * Based on load user function from grader report.       * Based on load user function from grader report.
191       * Pulls out the userids of the users to be used in the stats.       * Pulls out the userids of the users to be used in the stats.

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

Moodle CVS Admin
ViewVC Help
Powered by ViewVC 1.0.7