Skip to content

Commit

Permalink
Don't check config directory permissions on windows environment (ugly)
Browse files Browse the repository at this point in the history
fixes #16
  • Loading branch information
nuxsmin committed Nov 26, 2013
1 parent 58fad3d commit 4ca3952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ private static function checkConfig() {
//$configPerms = substr(sprintf('%o', fileperms(self::$SERVERROOT.'/config')), -4);
$configPerms = decoct(fileperms(self::$SERVERROOT.'/config') & 0777);

if ( $configPerms != "750" ){
if ( ! SP_Util::runningOnWindows() && $configPerms != "750" ){
self::initError(_('Los permisos del directorio "/config" son incorrectos'),$configPerms);
}
}
Expand Down

0 comments on commit 4ca3952

Please sign in to comment.