Code Duplication    Length = 2-2 lines in 2 locations

ecrire/inc/flock.php 2 locations

@@ 593-594 (lines=2) @@
590
	}
591
592
593
	if (_CREER_DIR_PLAT and @file_exists("$base${subdir}.plat")) {
594
		return $baseaff . ($dirs[$base . $subdir] = "${subdir}_");
595
	}
596
597
	$path = $base . $subdir; # $path = 'IMG/distant/pdf' ou 'IMG/distant_pdf'
@@ 599-600 (lines=2) @@
596
597
	$path = $base . $subdir; # $path = 'IMG/distant/pdf' ou 'IMG/distant_pdf'
598
599
	if (file_exists("$path/.ok")) {
600
		return $baseaff . ($dirs[$base . $subdir] = "$subdir/");
601
	}
602
603
	@mkdir($path, _SPIP_CHMOD);