Ejemplo n.º 1
0
 protected function getDefaultVisibilityValue()
 {
     $value = parent::getDefaultVisibilityValue();
     // if default comment status is moderated, only show pending comments
     // by default.
     if ($this->app->config->blorg->default_comment_status === 'moderated') {
         $value = self::SHOW_UNAPPROVED;
     }
     return $value;
 }