Browse Source

Fix #4643 : utiliser l'API editer_logo et pas un rename sauvage en douce

master
Cerdic 2 months ago
parent
commit
dfb40494e9
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      action/editer_site.php

+ 3
- 1
action/editer_site.php View File

@ -53,7 +53,9 @@ function action_editer_site_dist($arg = null) {
) {
include_spip('inc/distant');
$logo = _DIR_RACINE . copie_locale($logo);
@rename($logo, _DIR_IMG . 'siteon' . $id_syndic . '.' . $format_logo);
include_spip('action/editer_logo');
logo_modifier('site', $id_syndic, 'on', $logo);
@unlink($logo);
}
}


Loading…
Cancel
Save