Overview
Comment: | Correction erreur liste fichiers utilisés |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
85d06d55c9e68c8793c2435d7a405f72 |
User & Date: | bohwaz on 2015-04-14 14:29:37 |
Other Links: | manifest | tags |
Context
2015-04-14
| ||
14:29 | Taille de la base de données et des fichiers dedans check-in: 365930a10a user: bohwaz tags: trunk | |
14:29 | Correction erreur liste fichiers utilisés check-in: 85d06d55c9 user: bohwaz tags: trunk | |
06:23 | Pour ne pas inclure les fichiers déjà mentionnés dans le texte check-in: 39cea025d7 user: bohwaz tags: trunk | |
Changes
Modified src/include/lib/Garradin/Fichiers.php from [6d133a8645] to [5f508c4d76].
︙ | ︙ | |||
560 561 562 563 564 565 566 | * @param string $text Texte wiki * @return array Liste des IDs de fichiers mentionnés */ static public function listFilesUsedInText($text) { preg_match_all('/<<?(?:fichier|image)\s*(?:\|\s*)?(\d+)/', $text, $match, PREG_PATTERN_ORDER); | < < < | 560 561 562 563 564 565 566 567 568 569 570 571 572 573 | * @param string $text Texte wiki * @return array Liste des IDs de fichiers mentionnés */ static public function listFilesUsedInText($text) { preg_match_all('/<<?(?:fichier|image)\s*(?:\|\s*)?(\d+)/', $text, $match, PREG_PATTERN_ORDER); return $match[1]; } /** * Callback utilisé pour l'extension <<fichier>> dans le wiki-texte * @param array $args Arguments passés à l'extension * @param string $content Contenu éventuel (en mode bloc) |
︙ | ︙ |