|
@@ -1287,7 +1287,14 @@ function InstallFile()
|
|
|
|
|
|
|
|
|
if (!is_writable($dirtemp))
|
|
|
- fatal_lang_error('theme_install_write_error', 'critical');
|
|
|
+ {
|
|
|
+
|
|
|
+ @chmod($dirtmp, '0755');
|
|
|
+
|
|
|
+
|
|
|
+ if (!is_writable($dirtemp))
|
|
|
+ fatal_lang_error('theme_install_write_error', 'critical');
|
|
|
+ }
|
|
|
|
|
|
|
|
|
if (!isset($_FILES) || !isset($_FILES['theme_gz']) || empty($_FILES['theme_gz']))
|