From: Alexander Ebert Date: Fri, 16 Mar 2012 16:02:40 +0000 (+0100) Subject: Fixed @import within LESS X-Git-Tag: 2.0.0_Beta_1~1209 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c5c72c489069381844e0457a339c54bc3bf1c44b;p=GitHub%2FWoltLab%2FWCF.git Fixed @import within LESS --- 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; }