From: Alexander Ebert Date: Wed, 14 Mar 2012 14:53:44 +0000 (+0100) Subject: Fixes replacement in LESS stylesheets X-Git-Tag: 2.0.0_Beta_1~1233 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c5838334a91c30e5b41622acc4267882a0075cdd;p=GitHub%2FWoltLab%2FWCF.git Fixes replacement in LESS stylesheets --- diff --git a/wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php b/wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php index f0dec89d98..8f63e1ab24 100644 --- a/wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php +++ b/wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php @@ -18,8 +18,7 @@ class LessStylesheetsPage extends AbstractPage { // use absolute path for url() $application = ApplicationHandler::getInstance()->getApplication('wcf'); $absolutePath = $application->domainName . $application->domainPath; - - preg_replace('~url\(\'..\/~', 'url(\''.$absolutePath, $content); + $content = preg_replace('~url\(\'..\/~', 'url(\''.$absolutePath, $content); echo $content; }