Don't use absolute alias in the StaticController

This commit is contained in:
Eric Lippmann 2015-08-27 14:10:30 +02:00
parent 274c0eacef
commit 3dd58a6ca7
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ use Icinga\Web\Controller;
use Icinga\Application\Icinga; use Icinga\Application\Icinga;
use Icinga\Application\Logger; use Icinga\Application\Logger;
use Icinga\Web\FileCache; use Icinga\Web\FileCache;
use Icinga\Web\LessCompiler;
/** /**
* Delivery static content to clients * Delivery static content to clients
@ -157,7 +158,7 @@ class StaticController extends Controller
*/ */
public function stylesheetAction() public function stylesheetAction()
{ {
$lessCompiler = new \Icinga\Web\LessCompiler(); $lessCompiler = new LessCompiler();
$moduleManager = Icinga::app()->getModuleManager(); $moduleManager = Icinga::app()->getModuleManager();
$publicDir = realpath(dirname($_SERVER['SCRIPT_FILENAME'])); $publicDir = realpath(dirname($_SERVER['SCRIPT_FILENAME']));