Fix fatal error when dispPageNotFound() is called as a 404 handler without arguments

This commit is contained in:
Kijin Sung 2024-05-16 20:43:13 +09:00
parent fda3bf939b
commit b2738bbb39

View file

@ -108,7 +108,7 @@ class PageView extends Page
/**
* 404 error handler
*/
public function dispPageNotFound($code, $message)
public function dispPageNotFound($code = '404', $message = 'msg_not_founded')
{
$oMessageObject = $this instanceof PageMobile ? MessageMobile::getInstance() : MessageView::getInstance();
$oMessageObject->setMessage($message);