From e65b8503b9baa9003922d0de600ff687a88bcd4d Mon Sep 17 00:00:00 2001 From: "xdjuj@apsulis.com" <> Date: Sat, 12 Jan 2013 12:00:55 +0000 Subject: [PATCH] =?UTF-8?q?C'=C3=A9tait=20tout=20cass=C3=A9=20tout=20?= =?UTF-8?q?=C3=A7a,=20c'est=20pas=20bien=20!=20-=20r=C3=A9parer=20les=20va?= =?UTF-8?q?leurs=20des=20champs=20=C3=A0=20copier=20par=20d=C3=A9faut=20-?= =?UTF-8?q?=20correction=20de=20coquille=20d'adresse=20des=20champs=20de?= =?UTF-8?q?=20conf=20du=20plugin,=20du=20coup=20la=20conf=20n'=C3=A9tait?= =?UTF-8?q?=20pas=20prise=20en=20compte=20-=20virer=20les=20spip=20log=20i?= =?UTF-8?q?nutiles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- duplicator_options.php | 9 +++------ formulaires/configurer_duplicator.html | 4 ++-- paquet.xml | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/duplicator_options.php b/duplicator_options.php index 471aa1b..1cc2eb4 100755 --- a/duplicator_options.php +++ b/duplicator_options.php @@ -29,13 +29,12 @@ function dupliquer_article($article,$rubrique){ "id_article=".$article ); $infos = sql_allfetsel($champs, $from, $where); + // On choisi les champs que l'on veut conserver $champs_dupliques = explode(",", lire_config('duplicator/config/art_champs')); array_walk($champs_dupliques, 'trim_value'); - if (empty($champs_dupliques)) $champs_dupliques = array( - 'surtitre','titre','soustitre','descriptif','chapo','texte','ps','accepter_forum','lang','langue_choisie','nom_site','url_site' - ); + if ($champs_dupliques[0]==''){ $champs_dupliques = array( 'surtitre','titre','soustitre','descriptif','chapo','texte','ps','accepter_forum','lang','langue_choisie','nom_site','url_site' ); } foreach ($champs_dupliques as $key => $value) { $infos_de_l_article[$value] = $infos[0][$value]; } @@ -102,9 +101,7 @@ function dupliquer_rubrique($rubrique,$cible=null,$titre=' (copie)'){ $champs_dupliques = explode(",", lire_config('duplicator/config/rub_champs')); array_walk($champs_dupliques, 'trim_value'); - if (empty($champs_dupliques)) $champs_dupliques = array( - 'id_parent','titre','descriptif','texte','lang','langue_choisie' - ); + if ($champs_dupliques[0]=="") $champs_dupliques = array('id_parent','titre','descriptif','texte','lang','langue_choisie'); foreach ($champs_dupliques as $key => $value) { $infos_de_la_rubrique[$value] = $infos[0][$value]; } diff --git a/formulaires/configurer_duplicator.html b/formulaires/configurer_duplicator.html index 33dace0..86daff2 100755 --- a/formulaires/configurer_duplicator.html +++ b/formulaires/configurer_duplicator.html @@ -30,13 +30,13 @@
  • <:duplicator:aide_choix_champs:>

    - +
  • <:duplicator:aide_choix_champs:>

    - +
  • diff --git a/paquet.xml b/paquet.xml index da35eb4..f8e58c9 100755 --- a/paquet.xml +++ b/paquet.xml @@ -1,7 +1,7 @@