/** * Update Setting * * @access public * @param string $key Setting key to update * @param mixed $value Value to set * @return boolean * @deprecated Not used any more best I can tell */ public function update_setting($key, $value) { /* Check for a key */ if (!$key) { return FALSE; } /* Update the DB */ $this->DB->update('core_sys_conf_settings', array('conf_value' => $value), "conf_key='{$key}'"); //----------------------------------------- // Rebuild settings cache //----------------------------------------- require_once IPSLib::getAppDir('core') . '/modules_admin/tools/settings.php'; $settings = new settings(); $settings->setting_rebuildcache(); /* Done */ return TRUE; }