1 (edited by dimkalinux 2009-05-29 13:17)

Topic: Functions for ext developers

Please add function for add config value in ext code. Now its ugle and may consist more errors like empty "" in PostgreSql DB.

if (!isset($forum_config['o_fancy_js_cache_minify'])) {
$query = array(
    'INSERT'    => 'conf_name, conf_value',
    'INTO'        => 'config',
    'VALUES'    => '\'o_fancy_js_cache_minify\', \'0\''
);
$forum_db->query_build($query) or error(__FILE__, __LINE__);
}

will be good have function forum_ext_add_config($name, $value);

Re: Functions for ext developers

The config values are added only once, on the installation of some extensions, so I don't think that it is needed to create a special function for this.

Re: Functions for ext developers

You right as user, but for ext developer it functions will be very usefull. Ok, i`m create extensions for this.