From a6a8c3540b4a5c9e3d293176d6bd007c71089857 Mon Sep 17 00:00:00 2001 From: lonalore Date: Fri, 16 Dec 2016 09:14:52 +0100 Subject: [PATCH] Ability to change error page contents. --- e107_handlers/error_page_class.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/e107_handlers/error_page_class.php b/e107_handlers/error_page_class.php index 1eb5125b4..06c550ed6 100644 --- a/e107_handlers/error_page_class.php +++ b/e107_handlers/error_page_class.php @@ -61,6 +61,36 @@ class error_page return e107::getError(); } + /** + * Change title on the error page. + * + * @param $title + */ + public function setTitle($title) + { + $this->title = $title; + } + + /** + * Change panel caption on the error page. + * + * @param $caption + */ + public function setCaption($caption) + { + $this->caption = $caption; + } + + /** + * Change panel content on the error page. + * + * @param $content + */ + public function setContent($content) + { + $this->content = $content; + } + /** * Set a "Bad Request" error page. */