blob: 7082188ef07acc1c24f678ec38dc19e4c256a2c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php /** @noinspection PhpMissingParentConstructorInspection */
namespace Icinga\Module\Incubator;
use Icinga\Application\Icinga;
use Icinga\Web\StyleSheet;
class Styles extends StyleSheet
{
public function __construct()
{
$pubPath = Icinga::app()->getBaseDir('public');
$slashes = \substr_count($pubPath, '/');
$prefix = \str_repeat('/..', $slashes) . __DIR__;
$files = ["$prefix/public/css/combined.less"];
foreach ($files as $file) {
self::$lessFiles[] = $file;
}
}
}
|