/**
* Creates a new PermissionDeniedException object.
*/
- public function __construct() {
- parent::__construct(WCF::getLanguage()->getDynamicVariable('wcf.page.error.permissionDenied'));
+ public function __construct($message = null) {
+ if ($message === null) $message = WCF::getLanguage()->getDynamicVariable('wcf.page.error.permissionDenied');
+ parent::__construct($message);
}
/**
'name' => get_class($this),
'file' => $this->getFile(),
'line' => $this->getLine(),
+ 'message' => $this->getMessage(),
'stacktrace' => $this->getTraceAsString(),
'templateName' => 'permissionDenied',
'templateNameApplication' => 'wcf'