protected function compile()
	{
		$this->import(Comments::class, 'Comments');
		$objConfig = new \stdClass();

		$objConfig->perPage = $this->com_perPage;
		$objConfig->order = $this->com_order;
		$objConfig->template = $this->com_template;
		$objConfig->requireLogin = $this->com_requireLogin;
		$objConfig->disableCaptcha = $this->com_disableCaptcha;
		$objConfig->bbcode = $this->com_bbcode;
		$objConfig->moderate = $this->com_moderate;

		$this->Comments->addCommentsToTemplate($this->Template, $objConfig, 'tl_content', $this->id, $GLOBALS['TL_ADMIN_EMAIL']);
	}
protected function compile()
	{
		$this->import(Comments::class, 'Comments');
		$objConfig = new \stdClass();

		$objConfig->perPage = $this->com_perPage;
		$objConfig->order = $this->com_order;
		$objConfig->template = $this->com_template;
		$objConfig->requireLogin = $this->com_requireLogin;
		$objConfig->disableCaptcha = $this->com_disableCaptcha;
		$objConfig->bbcode = $this->com_bbcode;
		$objConfig->moderate = $this->com_moderate;

		$this->Comments->addCommentsToTemplate($this->Template, $objConfig, 'tl_content', $this->id, $GLOBALS['TL_ADMIN_EMAIL']);
	}
protected function compile ( ) { $ this -> import ( Comments :: class , 'Comments' ) ; $ objConfig = new \ stdClass ( ) ; $ objConfig -> perPage = $ this -> com_perPage ; $ objConfig -> order = $ this -> com_order ; $ objConfig -> template = $ this -> com_template ; $ objConfig -> requireLogin = $ this -> com_requireLogin ; $ objConfig -> disableCaptcha = $ this -> com_disableCaptcha ; $ objConfig -> bbcode = $ this -> com_bbcode ; $ objConfig -> moderate = $ this -> com_moderate ; $ this -> Comments -> addCommentsToTemplate ( $ this -> Template , $ objConfig , 'tl_content' , $ this -> id , $ GLOBALS [ 'TL_ADMIN_EMAIL' ] ) ; }
Generate the module
Generate the module