mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Merge pull request #2155 from lonalore/error
Ability to change error page contents.
This commit is contained in:
@@ -61,6 +61,36 @@ class error_page
|
|||||||
return e107::getError();
|
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.
|
* Set a "Bad Request" error page.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user