From 678aa028303e8caaed053f31fa6592d1be802e40 Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Sun, 1 Jun 2008 15:01:18 +0000 Subject: [PATCH] "vieux bug qui forcait un hit sur l'image distante a chaque copie_locale, meme lorsque le fichier etait deja la !" --- ecrire/inc/distant.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ecrire/inc/distant.php b/ecrire/inc/distant.php index cce07b369b..1cd469677c 100644 --- a/ecrire/inc/distant.php +++ b/ecrire/inc/distant.php @@ -49,7 +49,8 @@ function copie_locale($source, $mode='auto') { $contenu = recuperer_page($source,false,false,_COPIE_LOCALE_MAX_SIZE); if (!$contenu) return false; ecrire_fichier(_DIR_RACINE.$local, $contenu); - + spip_log ('ecrire copie locale '._DIR_RACINE.$local); + // pour une eventuelle indexation pipeline('post_edition', array( @@ -354,7 +355,7 @@ function fichier_copie_locale($source) { // et si il n'aurait pas deja ete rapatrie $path_parts = pathinfo($source); - $ext = $path_part ? $path_parts['extension'] : ''; + $ext = $path_parts ? $path_parts['extension'] : ''; if ($ext AND sql_getfetsel("extension", "spip_types_documents", "extension=".sql_quote($ext))) { $f = nom_fichier_copie_locale($source, $ext); -- GitLab