From 4ca3952b01b1ce3fc2db5f7aaa44f4a18440b46e Mon Sep 17 00:00:00 2001 From: nuxsmin Date: Tue, 26 Nov 2013 22:53:27 +0100 Subject: [PATCH] Don't check config directory permissions on windows environment (ugly) fixes #16 --- inc/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/init.php b/inc/init.php index 56819a0f8..22a5b0520 100644 --- a/inc/init.php +++ b/inc/init.php @@ -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); } }