diff --git a/ecrire/inc/config.php b/ecrire/inc/config.php index 352bc2205920d34e89fadc8fb7a5c6cf165834c8..5411e90f1ce41a71fe5e021aa2e51aa3eb4f2c92 100644 --- a/ecrire/inc/config.php +++ b/ecrire/inc/config.php @@ -473,11 +473,6 @@ function afficher_choix($nom, $valeur_actuelle, $valeurs, $sep = "<br />") { // http://doc.spip.org/@appliquer_modifs_config function appliquer_modifs_config($purger_skel=false) { - if (($i = _request('adresse_site'))!==NULL){ - if (!strlen($i)) {$GLOBALS['profondeur_url']=_DIR_RESTREINT?0:1;$i = url_de_base();} - $_POST['adresse_site'] = preg_replace(",/?\s*$,", "", $i); - } - foreach(liste_metas() as $i => $v) { if (($x =_request($i))!==NULL) ecrire_meta($i, $x); diff --git a/prive/formulaires/configurer_identite.php b/prive/formulaires/configurer_identite.php index 8c0c08750df419feb0bbcb6b8595c122a3cb1826..aecfae6addd59b9f53ba013a31922ce35762ecca 100644 --- a/prive/formulaires/configurer_identite.php +++ b/prive/formulaires/configurer_identite.php @@ -41,6 +41,10 @@ function formulaires_configurer_identite_verifier_dist(){ function formulaires_configurer_identite_traiter_dist(){ include_spip('inc/config'); appliquer_modifs_config(); + if (($i = _request('adresse_site'))!==NULL){ + if (!strlen($i)) {$GLOBALS['profondeur_url']=_DIR_RESTREINT?0:1;$i = url_de_base();} + $_POST['adresse_site'] = preg_replace(",/?\s*$,", "", $i); + } include_spip('inc/meta'); foreach(array('nom_site','adresse_site','slogan_site','descriptif_site') as $k)