Эх сурвалжийг харах

Fixed issue with certificates directory creation - refs #3630

Yannick Warnier 12 жил өмнө
parent
commit
6c5c11dbce

+ 2 - 2
main/inc/lib/certificate.lib.php

@@ -79,7 +79,7 @@ class Certificate extends Model {
 			$this->certification_web_user_path = $web_path_info['dir'].'certificate/';			
 			
 			if (!is_dir($path_info['dir'])) {
-				mkdir($path_info['dir'],0777);
+				mkdir($path_info['dir'], 0777, true);
 			}
 					
 			if (!is_dir($this->certification_user_path)) {
@@ -331,4 +331,4 @@ class Certificate extends Model {
 		}
 		exit;
 	}	
-}
+}