mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-03 05:31:16 -04:00
Provide a "default moderate" option for comments. The default behavior
is unchanged, but you now have the option to set all new comments to be unpublished and then moderate them through the Admin > Content > Comments interface. Fixes #2126.
This commit is contained in:
@@ -81,7 +81,7 @@ class Comment_Model_Core extends ORM {
|
||||
// New comment
|
||||
$this->created = $this->updated;
|
||||
if (empty($this->state)) {
|
||||
$this->state = "published";
|
||||
$this->state = module::get_var("comment", "initial_state");
|
||||
}
|
||||
|
||||
// These values are useful for spam fighting, so save them with the comment. It's painful to
|
||||
|
||||
Reference in New Issue
Block a user