commit 1c1f4baf984d93abdf4cd02b446236ce91c2c92f
Author: Quentin Albrand <quentin.albrand@gmail.com>
Date:   Thu Aug 30 12:41:13 2012 +0200

    #1156482 : Solution proposed in
    http://www.php.net/manual/fr/function.fopen.php#95455

diff --git a/plugins/sweaver_plugin_styles/sweaver_plugin_styles.inc b/plugins/sweaver_plugin_styles/sweaver_plugin_styles.inc
index 983d850..fb334af 100644
--- a/plugins/sweaver_plugin_styles/sweaver_plugin_styles.inc
+++ b/plugins/sweaver_plugin_styles/sweaver_plugin_styles.inc
@@ -458,6 +458,7 @@ class sweaver_plugin_styles extends sweaver_plugin {
     // Create the css within the files folder.
     $sweaver_directory = 'public://sweaver';
     file_prepare_directory($sweaver_directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS);
+    ini_set ('user_agent', $_SERVER['HTTP_USER_AGENT']);
     $file = $sweaver_directory . '/' . $filename;
     if (!$fp = fopen($file, 'w')) {
       sweaver_session(t('The css file could not be created.'));
