From a7839b82e8233fd443bf17c0eb348429e3b1b8a2 Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Tue, 3 May 2005 21:08:21 +0000
Subject: [PATCH] double lien <a ...> sur les ciones des documents (Paolo)

---
 ecrire/inc_documents.php3 | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/ecrire/inc_documents.php3 b/ecrire/inc_documents.php3
index d007e4d17d..7896a87a16 100644
--- a/ecrire/inc_documents.php3
+++ b/ecrire/inc_documents.php3
@@ -88,7 +88,7 @@ function document_et_vignette($document, $url, $portfolio = false) {
 
 	if (!$image) {
 		list($fichier, $largeur, $hauteur) = vignette_par_defaut($extension);
-		$image = "<a href='$url'><img src='$fichier' style='border-width: 0px'  height='$hauteur' width='$largeur' /></a>";
+		$image = "<img src='$fichier' style='border-width: 0px'  height='$hauteur' width='$largeur' />";
 	}
 
 	if (!$url)
@@ -269,10 +269,11 @@ function integre_image($id_document, $align, $type_aff) {
 
 	if (($type_aff == 'DOC') && ($mode == 'document')) { 
 		if ($type = @spip_fetch_array(spip_query("SELECT titre FROM spip_types_documents WHERE id_type=$id_type")))
-		  $type = $type['titre'];
-		else	$type = 'fichier';
-		$vignette = "$vignette"
-		  . "<div>(<a href='$url_fichier'>$type, ".taille_en_octets($taille)."</a>)</div>";
+			$type = $type['titre'];
+		else
+			$type = 'fichier';
+		$vignette .= "<div>(<a href='$url_fichier'>$type, "
+			.taille_en_octets($taille)."</a>)</div>";
 	}
 
 	// Passer un DIV pour les images centrees et, dans tous les cas, les <DOC>
-- 
GitLab