Code Duplication    Length = 3-3 lines in 2 locations

ecrire/inc/filtres_dates.php 1 location

@@ 266-268 (lines=3) @@
263
	if ($annee > 4000) {
264
		$annee -= 9000;
265
	}
266
	if (strlen($jour) and substr($jour, 0, 1) == '0') {
267
		$jour = substr($jour, 1);
268
	}
269
270
	if ($forcer_jour and $jour == '0') {
271
		$jour = '1';

ecrire/inc/plugin.php 1 location

@@ 917-919 (lines=3) @@
914
							$GLOBALS['spip_version_branche'], 'spip')
915
					) {
916
						$dir = $chemin['path'];
917
						if (strlen($dir) and $dir{0} == "/") {
918
							$dir = substr($dir, 1);
919
						}
920
						if (strlen($dir) and $dir == "./") {
921
							$dir = '';
922
						}