Changeset 43777 in spip-zone
- Timestamp:
- Jan 21, 2011, 11:07:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_core_/plugins/medias/inc/vignette.php
r43738 r43777 12 12 if (!defined('_ECRIRE_INC_VERSION')) return; 13 13 14 // 15 // Vignette pour les documents lies 16 // 14 /** 15 * Vignette pour les documents lies 16 * rechercher les fichiers d'icone au format png pour l'extension demandee 17 * 18 * on cherche vignettes/ext.png dans le path 19 * prive/vignettes/ext.png 20 * 21 * 22 * @param string $ext 23 * @param bool $size 24 * @param bool $loop 25 * @return array|bool|int|string 26 */ 17 27 function inc_vignette_dist($ext, $size=true, $loop = true) { 18 28 … … 25 35 # installation dans un dossier /vignettes personnel, par exemple /squelettes/vignettes 26 36 !@file_exists($v = find_in_path("vignettes/".$ext.".png")) 27 AND !@file_exists($v = find_in_path("vignettes/".$ext.".gif"))37 #AND !@file_exists($v = find_in_path("vignettes/".$ext.".gif")) 28 38 # dans /icones (n'existe plus) 29 AND !@file_exists($v = _DIR_IMG_ICONES . $ext.'.png')30 AND !@file_exists($v = _DIR_IMG_ICONES . $ext.'.gif')39 #AND !@file_exists($v = _DIR_IMG_ICONES . $ext.'.png') 40 #AND !@file_exists($v = _DIR_IMG_ICONES . $ext.'.gif') 31 41 # icones standard 32 42 AND !@file_exists($v = _DIR_IMG_ICONES_DIST . $ext.'.png')
Note: See TracChangeset
for help on using the changeset viewer.