Code Duplication    Length = 3-3 lines in 2 locations

ecrire/inc/plugin.php 1 location

@@ 952-954 (lines=3) @@
949
								$GLOBALS['spip_version_branche'], 'spip')
950
						) {
951
							$dir = $chemin['path'];
952
							if (strlen($dir) and $dir[0] == "/") {
953
								$dir = substr($dir, 1);
954
							}
955
							if (strlen($dir) and $dir == "./") {
956
								$dir = '';
957
							}

ecrire/inc/filtres_dates.php 1 location

@@ 280-282 (lines=3) @@
277
	if ($annee > 4000) {
278
		$annee -= 9000;
279
	}
280
	if (strlen($jour) and substr($jour, 0, 1) == '0') {
281
		$jour = substr($jour, 1);
282
	}
283
284
	if ($forcer_jour and $jour == '0') {
285
		$jour = '1';