developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Opened 10 years ago
Closed 10 years ago
#1161 closed bug (fixed)
jImageModifier - Problème de path
Reported by: | brunto | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | Jelix 1.1.7 |
Component: | jelix:utils | Version: | 1.1.6 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Documentation needed: | no | |
Hosting Provider: | Php version: |
Description
Lors de l'utilisation du plugin {image}, tant que l'image n'est pas dans un thème, aucun problème mais si l'image à utiliser se trouve dans un thème alors le script rajoute le basepath deux fois.
Par exemple :
{image $j_themepath.'images/mon-image.png', array('width'=>100)}
Le plugin ira chercher l'image dans :
/basepath//basepath/themes/montheme/images/mon-image.png
Attachments (2)
Change History (6)
Changed 10 years ago by brunto
comment:1 Changed 10 years ago by brunto
Bien que le patch corrige le problème, les personnes utilisant le plugin devront du coup rajouter $j_basepath si leurs images ne se trouvent pas dans un thème. Exemple, avant on devait faire :
{image 'images/mon-image.png'}
Avec ce patch :
{image $j_basepath.'images/mon-image.png'}
Ce qui me parait plus logique d'un certain coté.
comment:2 Changed 10 years ago by brunto
Le patch2 est fonctionnel et permet d'avoir les trois cas de figure :
{image 'images/mon-image.png'}
et
{image $j_basepath.'images/mon-image.png'}
et
{image $j_themepath.'images/mon-image.png'}
comment:3 Changed 10 years ago by laurentj
- Milestone set to Jelix 1.1.7
comment:4 Changed 10 years ago by laurentj
- Resolution set to fixed
- Status changed from new to closed
Thanks for your patch. However, there is the same problem with $srcUri. I fixed that.
Patch pour jImageModifier.class.php