Skip to content
Extraits de code Groupes Projets
Valider 29f3d048 rédigé par marcimat@rezo.net's avatar marcimat@rezo.net
Parcourir les fichiers

2 notices PHP en moins lorsqu'on tourne une image

parent 629aea47
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -63,6 +63,7 @@ function action_tourner_post($id_document,$angle) ...@@ -63,6 +63,7 @@ function action_tourner_post($id_document,$angle)
include_spip('inc/documents'); include_spip('inc/documents');
// Fichier destination : on essaie toujours de repartir de l'original // Fichier destination : on essaie toujours de repartir de l'original
$var_rot = $angle; $var_rot = $angle;
$effacer = false;
include_spip('inc/distant'); # pour copie_locale include_spip('inc/distant'); # pour copie_locale
$src = _DIR_RACINE . copie_locale(get_spip_doc($row['fichier'])); $src = _DIR_RACINE . copie_locale(get_spip_doc($row['fichier']));
...@@ -119,7 +120,6 @@ function action_tourner_post($id_document,$angle) ...@@ -119,7 +120,6 @@ function action_tourner_post($id_document,$angle)
'type' =>'document', 'type' =>'document',
'id_objet' => $id_document, 'id_objet' => $id_document,
'champs' => array('rotation'=>$angle,'orientation'=>$var_rot,'fichier'=>$row['fichier']), 'champs' => array('rotation'=>$angle,'orientation'=>$var_rot,'fichier'=>$row['fichier']),
'serveur' => $serveur,
'action'=>'tourner', 'action'=>'tourner',
), ),
'data' => $set 'data' => $set
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter