public function __construct(Query $query, $disabled = false) { $config = Config::getInstance()->get('comment'); $this->reverse = (bool) $config['reverse']; $this->per_page = (int) $config['per_page']; $this->is_tree = (bool) $config['tree']; parent::__construct($query, $disabled); }