Use get_site() to get site's course number. Site course  could be different from course '1' in older installations.
Use get_site() to get site's course number.
Site course  could be different from course '1' in older installations.

dilawar/moodle