mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Show where an Exception was thrown or error object was returned
- 관리자에게만 표시함 - 오류 화면을 표시하는 방식에 따라서는 표시되지 않을 수 있음 - 코어 내부에서 발생하는 오류는 표시되지 않을 수 있음 - message 모듈 스킨에 의존함
This commit is contained in:
parent
9042e4110c
commit
339fd234a5
10 changed files with 81 additions and 10 deletions
|
|
@ -17,7 +17,7 @@ class messageView extends message
|
|||
/**
|
||||
* @brief Display messages
|
||||
*/
|
||||
function dispMessage($detail = null)
|
||||
function dispMessage($detail = null, $location = null)
|
||||
{
|
||||
// Get configurations (using module model object)
|
||||
$oModuleModel = getModel('module');
|
||||
|
|
@ -47,10 +47,17 @@ class messageView extends message
|
|||
{
|
||||
if(strncasecmp('https://', Context::getRequestUri(), 8) === 0) $ssl_mode = true;
|
||||
}
|
||||
|
||||
// Remove basedir from location (if any)
|
||||
if ($location && starts_with(\RX_BASEDIR, $location))
|
||||
{
|
||||
$location = substr($location, strlen(\RX_BASEDIR));
|
||||
}
|
||||
|
||||
Context::set('ssl_mode', $ssl_mode);
|
||||
Context::set('system_message', nl2br($this->getMessage()));
|
||||
Context::set('system_message_detail', nl2br($detail));
|
||||
Context::set('system_message_location', escape($location));
|
||||
|
||||
$this->setTemplateFile('system_message');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue