database: MDL-16999 move the flag from config table to config_plugins table

This commit is contained in:
jerome
2008-11-24 00:51:58 +00:00
parent 4df7f4237e
commit 490414af8d
+2 -2
View File
@@ -2113,8 +2113,8 @@ function check_required_entries_fields($result) {
global $CFG;
if (!empty($CFG->version) //we are not installing a new Moodle site
&& $CFG->version < 2007101532 //the version is anterior to the one when the fix has been applied
&& !get_config("","data/requiredentriesfixflag")) { //do not show message when upgrading an anterior version when the patch has already been applied
set_config("data/requiredentriesfixflag",true); //set a flag into database in order to let know a Moodle 2.0 upgrade that the message has already been displayed
&& !get_config("data","requiredentriesfixflag")) { //do not show message when upgrading an anterior version when the patch has already been applied
set_config("requiredentriesfixflag",true, 'data'); //set a flag into database in order to let know a Moodle 2.0 upgrade that the message has already been displayed
$databases = get_records_sql("SELECT d.*, c.fullname
FROM {$CFG->prefix}data d,
{$CFG->prefix}course c