isset($CFG->enrol)????

isset($CFG->enrol)????

by Eugene Ritter -
Number of replies: 2
Where is $CFG->enroll set at? I can't seem to find it. I've browsed though, moodlelib.php, weblib.php, setup.php, defaults.php and so on... I'm working on modifying the paypal module to connect to the Bluepay gateway as well as a few other modifications...

Thanks
Average of ratings: -
In reply to Eugene Ritter

Re: isset($CFG->enrol)????

by Zbigniew Fiedorowicz -
It's stored in the config table of the Moodle database.  If it's not there, then it gets set to 'internal' in setup.php.

It gets into the database when you click on "Save Changes" in admin/enrol.php
In reply to Zbigniew Fiedorowicz

Re: isset($CFG->enrol)????

by Eugene Ritter -
Duh. I found it....

//setup.php line 74 - 82

if ($configs = get_records('config')) {
$CFG = (array)$CFG;
foreach ($configs as $config) {
$CFG[$config->name] = $config->value;
}
$CFG = (object)$CFG;
unset($configs);
unset($config);
}

Thanks!