diff --git a/ecrire/exec/admin_tech.php b/ecrire/exec/admin_tech.php index 41b0c281b1aba515d6202273828f73cef74c65e8..43dbc16d274503a011433cbf48bb73f0298a200d 100644 --- a/ecrire/exec/admin_tech.php +++ b/ecrire/exec/admin_tech.php @@ -69,9 +69,9 @@ echo "<tr><td class='serif'>"; if ($flag_gz) { echo "\n<p align='justify'>"._T('texte_admin_tech_03')."<p>"; echo "\n<INPUT TYPE='radio' NAME='gz' VALUE='1' id='gz_on' CHECKED><label for='gz_on'> "._T('bouton_radio_sauvegarde_compressee', - array('fichier'=>'<b>'._DIR_SESSIONS.'dump.xml.gz</b>'))." </label><BR>\n"; + array('fichier'=>'<b>'.joli_repertoire(_DIR_SESSIONS.'dump.xml.gz').'</b>'))." </label><BR>\n"; echo "\n<INPUT TYPE='radio' NAME='gz' VALUE='0' id='gz_off'><label for='gz_off'> "._T('bouton_radio_sauvegarde_non_compressee', - array('fichier'=>'<b>'._DIR_SESSIONS.'dump.xml</b>'))." </label><BR>\n"; + array('fichier'=>'<b>'.joli_repertoire(_DIR_SESSIONS.'dump.xml').'</b>'))." </label><BR>\n"; } else { echo "\n<p align='justify'>"._T('texte_sauvegarde_compressee', array('fichier'=>'<b>'.joli_repertoire(_DIR_SESSIONS).'dump.xml</b>')); diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php index 6c3322f31426e3ff88bb620096eca7078bf41d4e..9e6cdb51bbb3f690f29fe9fcd620788c594d1b76 100644 --- a/ecrire/inc/utils.php +++ b/ecrire/inc/utils.php @@ -420,7 +420,7 @@ function _L($text, $args=array()) { function joli_repertoire($rep) { $a = substr($rep,0,1); if ($a<>'.' AND $a<>'/') - $rep = _DIR_RESTREINT.$rep; + $rep = (_DIR_RESTREINT?'':_DIR_RESTREINT_ABS).$rep; return $rep; }