adding psm_update_conf() function

This commit is contained in:
Pepijn Over 2014-02-08 21:03:10 +01:00
parent 947923c5d6
commit 10f9d666d2
1 changed files with 15 additions and 0 deletions

View File

@ -125,6 +125,21 @@ function psm_load_conf() {
}
}
/**
* Update a config setting
* @global \psm\Service\Database $db
* @param string $key
* @param string $value
*/
function psm_update_conf($key, $value) {
global $db;
$db->save(
PSM_DB_PREFIX.'config',
array('value' => $value),
array('key' => $key)
);
}
###############################################
#