Overview
Comment: | Correctif : si le fichier n'existe pas, la couleur personnalisée ne peut pas marcher |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
46b7ebe138156e3e05ce27f31243b205 |
User & Date: | bohwaz on 2018-05-10 11:24:15 |
Other Links: | manifest | tags |
References
2020-12-08
| ||
23:25 | • Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz | |
Context
2018-05-10
| ||
12:33 | Amélioration requête report automatique, permettant de raccourcir le temps de clôture d'un exercice check-in: 08efcf1930 user: bohwaz tags: trunk | |
11:24 | Correctif : si le fichier n'existe pas, la couleur personnalisée ne peut pas marcher check-in: 46b7ebe138 user: bohwaz tags: trunk | |
11:18 | Ajout clause ON DELETE SET NULL pour éviter les problèmes à la suppression d'une catégorie liée à une cotisation existante check-in: d6b8553b10 user: bohwaz tags: trunk | |
Changes
Modified src/include/lib/Garradin/Template.php from [6da4919ab4] to [7c31943209].
︙ | ︙ | |||
210 211 212 213 214 215 216 | { return ''; } $couleur1 = implode(', ', sscanf($config->get('couleur1'), '#%02x%02x%02x')); $couleur2 = implode(', ', sscanf($config->get('couleur2'), '#%02x%02x%02x')); | > | > > > > > > > | 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | { return ''; } $couleur1 = implode(', ', sscanf($config->get('couleur1'), '#%02x%02x%02x')); $couleur2 = implode(', ', sscanf($config->get('couleur2'), '#%02x%02x%02x')); try { $f = new Fichiers($config->get('image_fond')); } catch (\InvalidArgumentException $e) { // Fichier qui n'existe pas return ''; } $image_fond = $f->getURL(); $out = ' <style type="text/css"> :root { --gMainColor: %s; --gSecondColor: %s; |
︙ | ︙ |