Fixed permissions of created stylesheets
authorAlexander Ebert <ebert@woltlab.com>
Sat, 10 Aug 2013 13:37:16 +0000 (15:37 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 10 Aug 2013 13:37:16 +0000 (15:37 +0200)
wcfsetup/install/files/lib/system/style/StyleCompiler.class.php

index 25d19ac05d9c91a6be081c0ff90e235bf34c4b1e..657cb94964328383e533d7bd3828ecff74bc694c 100644 (file)
@@ -219,11 +219,13 @@ class StyleCompiler extends SingletonFactory {
                
                // write stylesheet
                file_put_contents($filename.'.css', $content);
+               FileUtil::makeWritable($filename.'.css');
                
                // convert stylesheet to RTL
                $content = StyleUtil::convertCSSToRTL($content);
                
                // write stylesheet for RTL
                file_put_contents($filename.'-rtl.css', $content);
+               FileUtil::makeWritable($filename.'-rtl.css');
        }
 }