1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00

Add methods to retrieve library item description and art with fallback to parent data

This commit is contained in:
Afterster 2015-04-05 10:21:43 +02:00
parent 81ff034bd1
commit b04208b5c3
32 changed files with 255 additions and 64 deletions

View file

@ -241,7 +241,7 @@ class Shoutbox
}
$html .= "<div class='shoutbox-info'>";
if ($details) {
$html .= "<div class='shoutbox-object'>" . ($object->f_name_link ?: $object->f_link) . "</div>";
$html .= "<div class='shoutbox-object'>" . $object->f_link . "</div>";
$html .= "<div class='shoutbox-date'>".date("Y/m/d H:i:s", $this->date) . "</div>";
}
$html .= "<div class='shoutbox-text'>" . preg_replace('/(\r\n|\n|\r)/', '<br />', $this->text) . "</div>";