Add id to list element

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-02-09 12:14:45 +01:00 committed by Roeland Jago Douma
parent fd830b90eb
commit 2b6c00fc0f
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 2 additions and 2 deletions

View File

@ -166,8 +166,8 @@ class SimpleMenuAction implements IMenuAction {
public function render(): string {
$detailContent = ($this->detail !== '') ? '&nbsp;<span class="download-size">(' . Util::sanitizeHTML($this->detail) . ')</span>' : '';
return sprintf(
'<li><a href="%s"><span class="icon %s"></span>%s %s</a></li>',
Util::sanitizeHTML($this->link), Util::sanitizeHTML($this->icon), Util::sanitizeHTML($this->label), Util::sanitizeHTML($detailContent)
'<li id="%s"><a href="%s"><span class="icon %s"></span>%s %s</a></li>',
Util::sanitizeHTML($this->id), Util::sanitizeHTML($this->link), Util::sanitizeHTML($this->icon), Util::sanitizeHTML($this->label), $detailContent
);
}