Added new option $_CONF['article_comment_close_enabled'] to enable/disable automatically closing stories for comments after a certain amount of days (bug #0000959). Changed handling of comment_expire field in gl_stories such that 0 means the story is always open for comments.
3 // Add meta tag columns to story table
4 $_SQL[] = "ALTER TABLE {$_TABLES['stories']} ADD meta_description TEXT NULL AFTER frontpage, ADD meta_keywords TEXT NULL AFTER meta_description";
7 // Add meta tag columns to topics table
8 $_SQL[] = "ALTER TABLE {$_TABLES['topics']} ADD meta_description TEXT NULL AFTER imageurl, ADD meta_keywords TEXT NULL AFTER meta_description";
11 * Add new config options
14 function update_ConfValuesFor161()
16 global $_CONF, $_TABLES;
18 require_once $_CONF['path_system'] . 'classes/config.class.php';
20 $c = config::get_instance();
22 // meta tag config options.
23 $c->add('meta_tags',0,'select',0,0,23,2000,TRUE);
24 $c->add('meta_description','Geeklog, the open source content management system designed with security in mind.','text',0,0,NULL,2010,TRUE);
25 $c->add('meta_keywords','Geeklog, Blog, Content Management System, CMS, Open Source, Security','text',0,0,NULL,2020,TRUE);
27 // new option to enable / disable closing of comments after x days
28 $c->add('article_comment_close_enabled',0,'select',4,21,0, 1685, TRUE);