mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 05:34:01 +02:00
[ticket/13793] Remove translation on throwing exceptions
PHPBB3-13793
This commit is contained in:
@@ -17,10 +17,6 @@ namespace phpbb\notification;
|
||||
* Notifications exception
|
||||
*/
|
||||
|
||||
class exception extends \Exception
|
||||
class exception extends \phpbb\exception\runtime_exception
|
||||
{
|
||||
public function __toString()
|
||||
{
|
||||
return $this->getMessage();
|
||||
}
|
||||
}
|
||||
|
@@ -943,7 +943,7 @@ class manager
|
||||
{
|
||||
if (!isset($this->notification_types[$notification_type_name]) && !isset($this->notification_types['notification.type.' . $notification_type_name]))
|
||||
{
|
||||
throw new \phpbb\notification\exception($this->user->lang('NOTIFICATION_TYPE_NOT_EXIST', $notification_type_name));
|
||||
throw new \phpbb\notification\exception('NOTIFICATION_TYPE_NOT_EXIST', array($notification_type_name));
|
||||
}
|
||||
|
||||
$sql = 'INSERT INTO ' . $this->notification_types_table . ' ' . $this->db->sql_build_array('INSERT', array(
|
||||
|
Reference in New Issue
Block a user