From c2e261964e2706b8ab74b57b0b9fc4811bd25a8e Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Wed, 25 Jan 2006 22:49:48 +0000
Subject: [PATCH] retourner de tourner n'est pas re-re-tourner

---
 ecrire/inc_spip_action_tourner.php | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/ecrire/inc_spip_action_tourner.php b/ecrire/inc_spip_action_tourner.php
index 6067470008..6aceea041c 100644
--- a/ecrire/inc_spip_action_tourner.php
+++ b/ecrire/inc_spip_action_tourner.php
@@ -17,7 +17,7 @@ include_ecrire("inc_abstract_sql");# spip_insert / spip_fetch...
 
 function spip_action_tourner_dist() {
 	
-	global $arg, $var_rot, $convert_command;
+  global $arg, $var_rot, $convert_command, $redirect;
 	$var_rot = intval($var_rot);
 	$arg = intval($arg);
 
@@ -65,9 +65,11 @@ function spip_action_tourner_dist() {
 		spip_query("UPDATE spip_documents SET largeur=$largeur, hauteur=$hauteur WHERE id_document=$arg");
 
 	}
-        $GLOBALS['redirect'] = _DIR_RESTREINT_ABS . $GLOBALS['redirect'];
-	$GLOBALS['redirect'] .=	'&show_docs='.$arg;
-        if ($GLOBALS['ancre'])  $GLOBALS['redirect'] .= '#'. $GLOBALS['ancre'];
+	$redirect .= '&show_docs=' . $args;
+     
+     if ($ancre) {
+	$redirect .= '#' . $ancre;
+     }
 }
 
 
-- 
GitLab