mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-14 02:50:13 -04:00
Create a UI under Admin > Settings > Comments where you can limit
comments only to registered users. It's simplistic, but is better than adding a permission since generally this setting will be used Gallery-wide. Fixes ticket #1002
This commit is contained in:
@@ -47,7 +47,8 @@ class comment_installer {
|
||||
DEFAULT CHARSET=utf8;");
|
||||
|
||||
module::set_var("comment", "spam_caught", 0);
|
||||
module::set_version("comment", 2);
|
||||
module::set_var("comment", "access_permissions", "everybody");
|
||||
module::set_version("comment", 3);
|
||||
}
|
||||
|
||||
static function upgrade($version) {
|
||||
@@ -56,6 +57,11 @@ class comment_installer {
|
||||
$db->query("ALTER TABLE {comments} CHANGE `state` `state` varchar(15) default 'unpublished'");
|
||||
module::set_version("comment", 2);
|
||||
}
|
||||
|
||||
if ($version == 2) {
|
||||
module::set_var("comment", "access_permissions", "everybody");
|
||||
module::set_version("comment", 3);
|
||||
}
|
||||
}
|
||||
|
||||
static function uninstall() {
|
||||
|
||||
Reference in New Issue
Block a user