Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
@@ -26,6 +26,7 @@ class _Exception extends \RuntimeException
|
||||
* @brief Extra details for log
|
||||
*/
|
||||
public $extraDetails = array();
|
||||
public $messageKey = NULL;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
@@ -40,6 +41,7 @@ class _Exception extends \RuntimeException
|
||||
{
|
||||
/* Store these for the extraLogData() method */
|
||||
$this->extraDetails = $extra;
|
||||
$this->messageKey = $message;
|
||||
|
||||
switch ( $code )
|
||||
{
|
||||
@@ -47,7 +49,7 @@ class _Exception extends \RuntimeException
|
||||
$message = \IPS\Member::loggedIn()->language()->addToStack( $message, FALSE, array( 'sprintf' => $extra ) );
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
return parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user