For moodle 2.6 removed modinfo and sectioncache + changed $teachernames not found