Code Duplication    Length = 3-3 lines in 2 locations

ecrire/inc/plugin.php 1 location

@@ 941-943 (lines=3) @@
938
							$GLOBALS['spip_version_branche'], 'spip')
939
					) {
940
						$dir = $chemin['path'];
941
						if (strlen($dir) and $dir[0] == "/") {
942
							$dir = substr($dir, 1);
943
						}
944
						if (strlen($dir) and $dir == "./") {
945
							$dir = '';
946
						}

ecrire/inc/filtres_dates.php 1 location

@@ 274-276 (lines=3) @@
271
	if ($annee > 4000) {
272
		$annee -= 9000;
273
	}
274
	if (strlen($jour) and substr($jour, 0, 1) == '0') {
275
		$jour = substr($jour, 1);
276
	}
277
278
	if ($forcer_jour and $jour == '0') {
279
		$jour = '1';