1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-06 13:16:54 +02:00

Update monstra/helpers/html.php

This commit is contained in:
Sergey Romaneko
2012-10-04 15:24:46 +03:00
parent 177e98f258
commit e78e410f71

View File

@@ -255,6 +255,7 @@
// Add the image link
$attributes['src'] = $file;
$attributes['alt'] = (isset($attributes['alt'])) ? $attributes['alt'] : pathinfo($file, PATHINFO_FILENAME);
return '<img'.Html::attributes($attributes).' />';
}