<?php
namespace wcf\page;
-use wcf\system\application\ApplicationHandler;
+use wcf\data\application\Application;
class LessStylesheetsPage extends AbstractPage {
public function show() {
$content = file_get_contents($path);
// use absolute path for url()
- $application = ApplicationHandler::getInstance()->getApplication('wcf');
+ $application = new Application(1);
$absolutePath = $application->domainName . $application->domainPath;
$content = preg_replace('~url\(\'..\/~', 'url(\''.$absolutePath, $content);