Fixes replacement in LESS stylesheets
authorAlexander Ebert <ebert@woltlab.com>
Wed, 14 Mar 2012 14:53:44 +0000 (15:53 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 14 Mar 2012 14:53:44 +0000 (15:53 +0100)
wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php

index f0dec89d985228449dae0df94923adff1e92b4b9..8f63e1ab24a8525cef9c6de0f3c0a90df3edb36b 100644 (file)
@@ -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;
                                }