Where would I force these settings?

Where would I force these settings?

by Mr. Marc -
Number of replies: 0

In moodle 1.9 i hard coded thes values into the restore of a course in /usr/moodle/mod/forum/restorelib.php, Im having a time locating where to insert these in 2.2.

//Added these to set the values to hard code setting in the class for the modified code to function correctly for our college
$forum->scale = -2;
$forum->assessed = 2;
$forum->autoscribe = 0;
$forum->trackforums = 1;
$forum->maxbytes = '16384000';
$course->enrollable = 0;

//Had to run these sql statements to db to set all discussions times to 0 to allow the correct counting of unread posts in MeetNgreet.
$forum_discussions->timestart = 0;
$forum_discussions->timeend = 0;
      
// end

Average of ratings: -