From 0826066bd3b470df2ef6a03c6c71243e2cf356bc Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Wed, 28 Jan 2004 17:01:40 +0000
Subject: [PATCH] =?UTF-8?q?Correction=20d'un=20petit=20pb=20en=20interface?=
 =?UTF-8?q?=20simplifi=C3=A9e=20(le=20descriptif=20peut=20"sauter"=20quand?=
 =?UTF-8?q?=20on=20valide=20un=20titre)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

mais ce fichier est trop linéaire, plein de duplication de code... il faudrait le restructurer
---
 ecrire/inc_documents.php3 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ecrire/inc_documents.php3 b/ecrire/inc_documents.php3
index 73716f533f..fafdc28973 100644
--- a/ecrire/inc_documents.php3
+++ b/ecrire/inc_documents.php3
@@ -689,6 +689,10 @@ function afficher_horizontal_document($id_document, $image_link, $redirect_url =
 			echo "<br /><b>"._T('info_dimension')."</b><br />\n";
 			echo "<input type='text' name='largeur_document' class='fondl' style='font-size:9px;' value=\"$largeur\" size='5'>";
 			echo " x <input type='text' name='hauteur_document' class='fondl' style='font-size:9px;' value=\"$hauteur\" size='5'> "._T('info_pixels');
+		} else {
+			echo "<input type='hidden' name='descriptif_document' value='".entites_html($descriptif)."' />\n";
+			echo "<input type='hidden' name='largeur_document' value=\"$largeur\" />\n";
+			echo "<input type='hidden' name='hauteur_document' value=\"$hauteur\" />\n";
 		}
 
 		echo "<div align='".$GLOBALS['spip_lang_right']."'>";
@@ -1025,7 +1029,7 @@ function afficher_case_document($id_document, $image_link, $redirect_url = "", $
 		if (strlen($descriptif) > 0) echo propre($descriptif)."<br />";
 
 		echo "<font size='2'>";
-		if ($options == "avanceees") {
+		if ($options == "avancees") {
 			if ($type_titre){
 				echo "$type_titre";
 			} else {
-- 
GitLab