/trunk/includes/classes/OIDplusHtmlException.class.php |
---|
42,7 → 42,7 |
* @param string $message |
* @param string|null $title |
*/ |
public function __construct(string $message, string $title=null) { |
public function __construct(string $message, string $title=null, int $httpStatus=500) { |
$this->htmlTitle = $title; |
if ($title) { |
$title = strip_tags($title); |
54,7 → 54,7 |
$this->htmlMessage = $message; |
$message_text = html_to_text($message); |
parent::__construct($message_text, $title_text); |
parent::__construct($message_text, $title_text, $httpStatus); |
} |
/** |