Old Face to Face and Moodle 2

Re: Old Face to Face and Moodle 2

by Alastair Munro -
Number of replies: 0

Hi Michelle,

Here are the instructions. Please make sure you read the warning at the bottom as I can take no responsiblity for mistakes made when editing this file.

After the line:

if ($url = $mod->get_url()) {

around line #1646 in course/lib.php

add:

 if ($mod->modname == 'facetoface') {
                        include_once($CFG->dirroot.'/mod/facetoface/lib.php');
                        echo '<div ' . $textcss . '>';
                        echo facetoface_print_coursemodule_info($mod);
                        echo '</div>';
                    } else {

and then add a closing bracket before the next else statement.

Warning: this should not be attempted by anyone without PHP programming skills as one wrong character may result in your Moodle installation being completely broken and unusable!!

Cheers,
Alastair