Code Duplication    Length = 6-7 lines in 2 locations

ecrire/inc/forum.php 2 locations

@@ 44-49 (lines=6) @@
41
		for (;$tranche<$max;$tranche+=$pas){
42
			if ($tranche == $debut)
43
				$nav .= "<span class='spip_medium'><b>$tranche</b></span> |\n";
44
			else {
45
				$h = "$args&debut=$tranche";
46
				$h = generer_url_ecrire($script, $h);
47
				if ($e)	$e = "\nonclick=" . ajax_action_declencheur($h,$script);
48
				$nav .= "<a href='$h'$e>$tranche</a> |\n";
49
			}
50
		}
51
52
		if ($tranche  < $total) {
@@ 52-58 (lines=7) @@
49
			}
50
		}
51
52
		if ($tranche  < $total) {
53
		  $h = generer_url_ecrire($script, $args . "&debut=" . $total);
54
		  if ($e) {
55
		    $e = "\nonclick=" . ajax_action_declencheur($h,$script);
56
		  }
57
		  $nav .= "... | <a href='$h'$e>$total</a>";
58
		}
59
	}
60
61
	$query['LIMIT'] = "$debut, $pas";