* generating $CFG safely from the database without overwriting
* existing values.
*
+ * If called with 2 parameters it will return a $string single
+ * value or false of the value is not found.
+ *
* @param string $plugin
* @param string $name
* @uses $CFG
if (!empty($name)) { // the user is asking for a specific value
if (!empty($plugin)) {
- return get_record('config_plugins', 'plugin' , $plugin, 'name', $name);
+ return get_field('config_plugins', 'value', 'plugin' , $plugin, 'name', $name);
} else {
- return get_record('config', 'name', $name);
+ return get_field('config', 'value', 'name', $name);
}
}