$capabilities->complete = true;
}
+ //check whether the feedback is located and! started from the mainsite
+ if($course->id == SITEID AND !$courseid) {
+ $courseid = SITEID;
+ }
+
//check whether the feedback is mapped to the given courseid
if($course->id == SITEID AND !$capabilities->edititems) {
if($DB->get_records('feedback_sitecourse_map', array('feedbackid'=>$feedback->id))) {
}
}
}
-
- //check whether the feedback is located and! started from the mainsite
- if($course->id == SITEID AND !$courseid) {
- $courseid = SITEID;
- }
if($feedback->anonymous != FEEDBACK_ANONYMOUS_YES) {
if($course->id == SITEID) {
*/
- $module->version = 2008073002; // The current module version (Date: YYYYMMDDXX)
+ $module->version = 2008073003; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2008072401; // Requires this Moodle version
$feedback_version_intern = 1; //this version is used for restore older backups
$module->cron = 0; // Period for cron to check this module (secs)
$capabilities->complete = true;
}
+ //check whether the feedback is located and! started from the mainsite
+ if($course->id == SITEID AND !$courseid) {
+ $courseid = SITEID;
+ }
+
//check whether the feedback is mapped to the given courseid
if($course->id == SITEID AND !$capabilities->edititems) {
if($DB->get_records('feedback_sitecourse_map', array('feedbackid'=>$feedback->id))) {
}
}
- //check whether the feedback is located and! started from the mainsite
- if($course->id == SITEID AND !$courseid) {
- $courseid = SITEID;
- }
-
if($feedback->anonymous != FEEDBACK_ANONYMOUS_YES) {
if($course->id == SITEID) {
require_login($course->id, true);