mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
StartupLogRenderer: alias for Util class
Should help to work around PHP bugs in some older versions fixes #1057
This commit is contained in:
parent
496be4fbc8
commit
806bca2555
@ -4,7 +4,7 @@ namespace Icinga\Module\Director;
|
|||||||
|
|
||||||
use Icinga\Module\Director\Objects\DirectorDeploymentLog;
|
use Icinga\Module\Director\Objects\DirectorDeploymentLog;
|
||||||
use ipl\Html\Link;
|
use ipl\Html\Link;
|
||||||
use ipl\Html\Util;
|
use ipl\Html\Util as iplUtil;
|
||||||
use ipl\Html\ValidHtml;
|
use ipl\Html\ValidHtml;
|
||||||
|
|
||||||
class StartupLogRenderer implements ValidHtml
|
class StartupLogRenderer implements ValidHtml
|
||||||
@ -20,7 +20,7 @@ class StartupLogRenderer implements ValidHtml
|
|||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
$deployment = $this->deployment;
|
$deployment = $this->deployment;
|
||||||
$log = Util::escapeForHtml($deployment->get('startup_log'));
|
$log = iplUtil::escapeForHtml($deployment->get('startup_log'));
|
||||||
$lines = array();
|
$lines = array();
|
||||||
$severity = 'information';
|
$severity = 'information';
|
||||||
$sevPattern = '/^(debug|notice|information|warning|critical)\/(\w+)/';
|
$sevPattern = '/^(debug|notice|information|warning|critical)\/(\w+)/';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user