Code Duplication    Length = 3-3 lines in 2 locations

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';

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
							}