fix private images

This commit is contained in:
Friendika 2011-04-30 17:24:37 -07:00
parent ebfe536ded
commit e00068334f
3 changed files with 47 additions and 6 deletions

View file

@ -80,7 +80,7 @@ function bbcode($Text,$preserve_nl = false) {
// Images
// [img]pathtoimage[/img]
$Text = preg_replace("/\[img\](.+?)\[\/img\]/", '<img src="$1">', $Text);
$Text = preg_replace("/\[img\](.+?)\[\/img\]/", '<img src="$1" alt="' . t('Image/photo') . '" />', $Text);
// html5 video and audio