Force usage of WCF-application
authorAlexander Ebert <ebert@woltlab.com>
Wed, 14 Mar 2012 15:19:01 +0000 (16:19 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 14 Mar 2012 15:19:01 +0000 (16:19 +0100)
wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php

index e2a82fb4b365e40e0aed8d78f27f37ba63b320f3..d2f76627d7bed4a10f55cb679f7bbb18883c538c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 namespace wcf\page;
-use wcf\system\application\ApplicationHandler;
+use wcf\data\application\Application;
 
 class LessStylesheetsPage extends AbstractPage {
        public function show() {
@@ -16,7 +16,7 @@ class LessStylesheetsPage extends AbstractPage {
                                        $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);