Work on modulebuilder

This commit is contained in:
Laurent Destailleur
2017-06-02 20:01:25 +02:00
parent bfa50b8d1d
commit 9e629bdb02
4 changed files with 9 additions and 8 deletions

View File

@@ -2556,6 +2556,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
$picto = $regs[1];
$path = $regs[2]; // $path is $mymodule
}
// Clean parameters
if (! preg_match('/(\.png|\.gif)$/i',$picto)) $picto .= '.png';
// If alt path are defined, define url where img file is, according to physical path