/**
  * Main method called by the controller.
  *
  * @param array $gp The current GET/POST parameters
  * @param array $errors The errors occurred in validation
  * @return string content
  */
 public function render($gp, $errors)
 {
     $this->gp = $gp;
     $this->settings = $this->parseSettings();
     $this->sanitizeMarkers();
     $content = parent::render($this->gp, $errors);
     return $this->pi_wrapInBaseClass($content);
 }
 /**
  * Main method called by the controller.
  *
  * @param array $gp The current GET/POST parameters
  * @param array $errors In this class the second param is used to pass information about the email mode (HTML|PLAIN)
  * @return string content
  */
 public function render($gp, $errors)
 {
     $this->currentMailSettings = $errors;
     $content = '';
     if ($this->subparts['template']) {
         $this->settings = $this->globals->getSettings();
         $content = parent::render($gp, array());
     }
     return $content;
 }
 /**
  * Main method called by the controller.
  *
  * @param array $gp The current GET/POST parameters
  * @param array $errors The errors occurred in validation
  * @return string content
  */
 public function render($gp, $errors)
 {
     $this->gp = $gp;
     $this->settings = $this->parseSettings();
     return parent::render($this->gp, $errors);
 }