Had to change some things in global widgets management and also in html code widget. Sorry for this ugly commit..
14 lines
339 B
PHP
14 lines
339 B
PHP
<?php
|
|
namespace App\Widgets\Exceptions;
|
|
|
|
use Exception;
|
|
|
|
class WidgetExistsException extends \Exception
|
|
{
|
|
public function __construct($message = "", $code = 0, Exception $previous = null)
|
|
{
|
|
$message = trans('admin/widgets.widgetExists', ['id' => $message]);
|
|
|
|
parent::__construct($message, $code, $previous);
|
|
}
|
|
} |