Code Duplication    Length = 2-2 lines in 2 locations

ecrire/inc/plugin.php 2 locations

@@ 606-607 (lines=2) @@
603
						if (strlen($dir) AND $dir{0}=="/") $dir = substr($dir,1);
604
						if (strlen($dir) AND $dir=="./") $dir = '';
605
						if (strlen($dir)) $dir = rtrim($dir,'/').'/';
606
						if (!isset($chemin['type']) OR $chemin['type']=='public')
607
							$chemins['public'][]="_DIR_PLUGIN_$prefix".(strlen($dir)?".'$dir'":"");
608
						if (!isset($chemin['type']) OR $chemin['type']=='prive')
609
							$chemins['prive'][]="_DIR_PLUGIN_$prefix".(strlen($dir)?".'$dir'":"");
610
					}
@@ 608-609 (lines=2) @@
605
						if (strlen($dir)) $dir = rtrim($dir,'/').'/';
606
						if (!isset($chemin['type']) OR $chemin['type']=='public')
607
							$chemins['public'][]="_DIR_PLUGIN_$prefix".(strlen($dir)?".'$dir'":"");
608
						if (!isset($chemin['type']) OR $chemin['type']=='prive')
609
							$chemins['prive'][]="_DIR_PLUGIN_$prefix".(strlen($dir)?".'$dir'":"");
610
					}
611
				}
612
			}