Overview
Comment: | Correction du format des champs de type date et datetime dans les fiches membre |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
15c085059e8c35e9081810c89756e0d7 |
User & Date: | bohwaz on 2020-06-22 23:32:38 |
Other Links: | manifest | tags |
Context
2020-06-22
| ||
23:34 | Restaurer contenu article.html qui a été malencontreusement remplacé check-in: 68c2ae597f user: bohwaz tags: trunk, stable, 0.9.7 | |
23:32 | Correction du format des champs de type date et datetime dans les fiches membre check-in: 15c085059e user: bohwaz tags: trunk | |
2020-06-16
| ||
13:07 | Fix orthographe, signalé par @Jean-Christophe check-in: 9064396ec5 user: bohwaz tags: trunk, stable | |
Changes
Modified src/VERSION from [ae3bb925c1] to [c142a1f0a9].
|
| | | 1 | 0.9.7 |
Modified src/www/admin/upgrade.php from [1719a77790] to [e7dfb28581].
︙ | ︙ | |||
266 267 268 269 270 271 272 273 274 275 276 277 278 279 | } if (version_compare($v, '0.9.5', '<')) { $db->begin(); // Créer les tables manquantes $db->import(ROOT . '/include/data/schema.sql'); $db->commit(); } Utils::clearCaches(); $config->setVersion(garradin_version()); | > > > > > > > > > > > > > > > > > > > | 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 | } if (version_compare($v, '0.9.5', '<')) { $db->begin(); // Créer les tables manquantes $db->import(ROOT . '/include/data/schema.sql'); $db->commit(); } if (version_compare($v, '0.9.7', '<')) { $db->begin(); // Conversion des champs date $champs = (array) $config->get('champs_membres')->getAll(); foreach ($champs as $key => $champ) { if ($champ->type == 'date') { $db->exec(sprintf('UPDATE membres SET %s = date(%01$s) WHERE %01$s IS NOT NULL;', $db->quoteIdentifier($key))); } elseif ($champ->type == 'datetime') { $db->exec(sprintf('UPDATE membres SET %s = datetime(%01$s) WHERE %01$s IS NOT NULL;', $db->quoteIdentifier($key))); } } $db->commit(); } Utils::clearCaches(); $config->setVersion(garradin_version()); |
︙ | ︙ |
Modified src/www/squelettes-dist/article.html from [76fac266de] to [1358605e8d].
1 2 | <INCLURE{entete.html}> | > > < | < < < | | | > | > > > | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | <BOUCLE_rubrique(PAGES){uri}> <INCLURE{entete.html}> <article class="rubrique"> <h1>#TITRE</h1> <div class="corps"> [(#TEXTE*|formatter_texte)] </div> <INCLURE{galerie.html}> <INCLURE{documents.html}> </article> <section class="articles"> <BOUCLE_articles(ARTICLES){rubrique}{par uri}> <article> <h3><a href="#URL">#TITRE</a></h3> <p>[(#TEXTE|supprimer_skriv|couper{200})]</p> </article> </BOUCLE_articles> </section> <INCLURE{pied.html}> </BOUCLE_rubrique> <INCLURE{entete.html}> <p class="error"> Cette page n'existe pas. </p> <INCLURE{pied.html}> <//B_rubrique> |