summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/new-bookmark.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/new-bookmark.php b/views/new-bookmark.php
index ca2fd18..6ab0606 100644
--- a/views/new-bookmark.php
+++ b/views/new-bookmark.php
@@ -39,7 +39,12 @@
if($this->syndication_targets) {
echo '<ul>';
foreach($this->syndication_targets as $syn) {
- echo '<li><button data-syndication="'.$syn['target'].'" class="btn btn-default btn-block"><img src="'.$syn['favicon'].'" width="16" height="16"> '.$syn['target'].'</button></li>';
+ echo '<li>'
+ . '<button data-syndicate-to="'.(isset($syn['uid']) ? htmlspecialchars($syn['uid']) : htmlspecialchars($syn['target'])).'" class="btn btn-default btn-block">'
+ . ($syn['favicon'] ? '<img src="'.htmlspecialchars($syn['favicon']).'" width="16" height="16"> ' : '')
+ . htmlspecialchars($syn['target'])
+ . '</button>'
+ . '</li>';
}
echo '</ul>';
} else {