From: Alexander Ebert Date: Sat, 10 Aug 2013 13:37:16 +0000 (+0200) Subject: Fixed permissions of created stylesheets X-Git-Tag: 2.0.0_Beta_7~31^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18c6f9fd5cd44f4bc86177a4b8f74262f4f78e37;p=GitHub%2FWoltLab%2FWCF.git Fixed permissions of created stylesheets --- diff --git a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php index 25d19ac05d..657cb94964 100644 --- a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php @@ -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'); } }