diff --git a/base/soyezcreateurs.php b/base/soyezcreateurs.php index 9430096903345d9191e9c0a73379e74dc828fa90..049b3a54bfa8bc8266282ab7a39934688475c637 100644 --- a/base/soyezcreateurs.php +++ b/base/soyezcreateurs.php @@ -705,7 +705,7 @@ function create_document($chemin, $objet, $mode, $champs='non', $id_document='no return false; } -function create_logo($chemin, $type='art', $id, $ext, $onoff='on') { +function create_logo($chemin, $type='article', $id, $ext, $onoff='on') { include_spip('action/editer_logo'); $erreur = logo_modifier($type, $id, $onoff, find_in_path($chemin)); return $erreur; @@ -725,6 +725,7 @@ function id_site($titre, $id_rubrique) { function create_site($site, $rubrique) { $id_rubrique = id_rubrique($rubrique); + $date = date("Y-m-d H:i:s"); if ($id_rubrique > 0) { $id_site = id_site($site['nom_site'], $id_rubrique); if ($id_site > 0) { @@ -734,6 +735,7 @@ function create_site($site, $rubrique) { "url_syndic" => $site['url_syndic'], "descriptif" => $site['descriptif'], "statut" => $site['statut'] ? $site['statut']:'prop', + "date" => $date, "syndication" => $site['url_syndic'] ? 'oui':'non', "oubli" => $site['oubli'] ? 'oui':'non' ), "id_syndic=$id_site" @@ -747,6 +749,7 @@ function create_site($site, $rubrique) { "url_syndic" => $site['url_syndic'], "descriptif" => $site['descriptif'], "statut" => $site['statut'] ? $site['statut']:'prop', + "date" => $date, "syndication" => $site['url_syndic'] ? 'oui':'non', "oubli" => $site['oubli'] ? 'oui':'non' )