summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-02-09 12:14:45 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-02-27 12:25:53 +0100
commit2b6c00fc0f4730a20479edee78cfca775bb3bd9a (patch)
treeadd9ef4b96eb7abe8a876d8aa62af9fb29c7c1bb /lib/public
parentfd830b90ebfbe721be5663c6c418540abec61689 (diff)
downloadnextcloud-server-2b6c00fc0f4730a20479edee78cfca775bb3bd9a.tar.gz
nextcloud-server-2b6c00fc0f4730a20479edee78cfca775bb3bd9a.zip
Add id to list element
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/AppFramework/Http/Template/SimpleMenuAction.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/AppFramework/Http/Template/SimpleMenuAction.php b/lib/public/AppFramework/Http/Template/SimpleMenuAction.php
index b81403c7a53..8a261cc217f 100644
--- a/lib/public/AppFramework/Http/Template/SimpleMenuAction.php
+++ b/lib/public/AppFramework/Http/Template/SimpleMenuAction.php
@@ -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
);
}