rendered paste bodyclass Article_Comments_controller extends Comments_controller { /** * Constructor function */ public function __construct() { $tmp_config = $this->_settings->get( 'article' ); if ( !$tmp_config['use_comments'] ) { $this->comments_disabled = true; } } }class Comments_controller extends Controller_base { //etc /** * @var bool */ protected $comments_disabled = false; public function index_section( $group='' ) { $this->set_title( $this->get_detail( 'title' ).' Comments' ); if ( $this->_settings->get( 'comments/enable' ) == false || $this->comments_disabled ) { $this->set_title( $this->get_detail( 'title' ).' - Comments' ); return 'Comments are not enabled'; } //etc } //etc}