diff --git a/ecrire/exec/convert_utf8.php b/ecrire/exec/convert_utf8.php index 5f2a0a2201dad47b2bf52f3a1d73d0c6c4643742..00788f962ad87d6a7adb134fb1eea64549e2e75a 100644 --- a/ecrire/exec/convert_utf8.php +++ b/ecrire/exec/convert_utf8.php @@ -29,10 +29,10 @@ function exec_convert_utf8_dist() { $action = _T('utf8_convertir_votre_site'); // si meta deja la, c'est une reprise apres timeout. - if ($GLOBALS['meta']['convert_utf8']) { - $base = charger_fonction('convert_utf8', 'base'); - $base($action, true); - } else { + if ($GLOBALS['meta']['convert_utf8'] AND $GLOBALS['meta']['admin']) { + $admin = charger_fonction('admin', 'inc'); + echo $admin('convert_utf8', $action, '', true); + } else { $charset_orig = $GLOBALS['meta']['charset']; // tester si le charset d'origine est connu de spip if (!load_charset($charset_orig))