mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-11-24 14:54:05 +01:00
Following command was used:
$ find application/ library/Icinga/ modules/ -name *.php | xargs sed -i -e :a -e '/./,$!d;/^\n*$/{$d;N;};/\n$/ba;$a\'
19 lines
326 B
PHP
19 lines
326 B
PHP
<?php
|
|
|
|
namespace Icinga\Web\View;
|
|
|
|
use Icinga\Web\Url;
|
|
|
|
function url($path = null, $params = null)
|
|
{
|
|
if ($path === null) {
|
|
$url = Url::fromRequest();
|
|
if ($params !== null) {
|
|
$url->setParams($params);
|
|
}
|
|
} else {
|
|
$url = Url::fromPath($path, $params);
|
|
}
|
|
return $url;
|
|
}
|