Index: branches/5.0.x/core/install/install_toolkit.php =================================================================== diff -u -r12117 -r12199 --- branches/5.0.x/core/install/install_toolkit.php (.../install_toolkit.php) (revision 12117) +++ branches/5.0.x/core/install/install_toolkit.php (.../install_toolkit.php) (revision 12199) @@ -1,6 +1,6 @@ Application->HandleEvent($themes_event, 'adm:OnRebuildThemes'); } + + /** + * Checks that file is writable by group or others + * + * @param string $file + * @return boolean + */ + function checkWritePermissions($file) + { + if (DIRECTORY_SEPARATOR == '\\') { + // windows doen't allow to check permissions (always returns true) + return true; + } + + $permissions = fileperms($file); + return $permissions & 0x0010 || $permissions & 0x0002; + } } \ No newline at end of file