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:
@@ -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).' />';
|
||||
}
|
||||
|
Reference in New Issue
Block a user