Print array of authors
This commit is contained in:
parent
6b005fb6a9
commit
3aea8f89f3
4
Game.php
4
Game.php
|
@ -32,10 +32,14 @@ class Game {
|
|||
if (FORMAT === 'HTML') {
|
||||
$output = "<li><a rel='nofollow' target='_blank' href='".trim($this->url)."'>«".trim($this->title)."»</a>";
|
||||
if ($this->author) {
|
||||
if (is_array($this->author)) {
|
||||
$output .= " — <em>".implode(', ', array_map('trim', $this->author))."</em>";
|
||||
} else {
|
||||
$output .= " — <em>".trim($this->author)."</em>";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (STYLE === 'ENG') {
|
||||
$output = "* [“".trim($this->title)."”](".trim($this->url).")";
|
||||
if ($this->author) {
|
||||
|
|
Reference in a new issue