From c5c72c489069381844e0457a339c54bc3bf1c44b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 16 Mar 2012 17:02:40 +0100 Subject: [PATCH] Fixed @import within LESS --- wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php b/wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php index d2f76627d7..c2645b64c4 100644 --- a/wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php +++ b/wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php @@ -19,6 +19,7 @@ class LessStylesheetsPage extends AbstractPage { $application = new Application(1); $absolutePath = $application->domainName . $application->domainPath; $content = preg_replace('~url\(\'..\/~', 'url(\''.$absolutePath, $content); + $content = preg_replace('~@import "([a-zA-Z]+)\.less";~', '@import "' . $absolutePath . 'style/$1.less";', $content); echo $content; } -- 2.20.1