MDL-12977 adding missing global $CFG

This commit is contained in:
skodak
2008-01-18 10:18:47 +00:00
parent b8ca891023
commit 4b3f2d3739
+1
View File
@@ -132,6 +132,7 @@ function groups_get_group_settings($groupid, $courseid=false, $alldata=false) {
* @return string The path of the image for the group
*/
function groups_get_group_image_path($groupid) {
global $CFG;
//TODO: groupid=1, /user/pixgroup.php/1/f1.jpg ??
return $CFG->wwwroot.'/pixgroup.php/'.$groupid.'/f1.jpg';
}