mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Tabs: Method render()
does not expect any param and import missing Exception class
This commit is contained in:
parent
29b2ed22b9
commit
30b91b9cd2
@ -3,6 +3,7 @@
|
||||
|
||||
namespace Icinga\Web\Widget;
|
||||
|
||||
use Exception;
|
||||
use Icinga\Exception\Http\HttpNotFoundException;
|
||||
use Icinga\Exception\ProgrammingError;
|
||||
use Icinga\Web\Url;
|
||||
@ -389,7 +390,7 @@ EOT;
|
||||
public function __toString()
|
||||
{
|
||||
try {
|
||||
$html = $this->render(Icinga::app()->getViewRenderer()->view);
|
||||
$html = $this->render();
|
||||
} catch (Exception $e) {
|
||||
return htmlspecialchars($e->getMessage());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user