summaryrefslogtreecommitdiff
path: root/classes/pref/users.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-11-24 23:31:33 +0300
committerAndrew Dolgov <[email protected]>2022-11-24 23:31:33 +0300
commita30b9bb649d6e10a5d7c2feb73376669cf23ef68 (patch)
tree33716caf2286a0c544a2f053ea07c677aebd5fd4 /classes/pref/users.php
parentbe6bc72a742c5fb7f87a4495009ed71ff0fbb8d8 (diff)
rework favicon storage to use DiskCache
Diffstat (limited to 'classes/pref/users.php')
-rw-r--r--classes/pref/users.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/classes/pref/users.php b/classes/pref/users.php
index c48619614..78291592d 100644
--- a/classes/pref/users.php
+++ b/classes/pref/users.php
@@ -82,11 +82,10 @@ class Pref_Users extends Handler_Administrative {
<?php while ($row = $sth->fetch()) { ?>
<li>
<?php
- $icon_file = Config::get(Config::ICONS_URL) . "/" . $row["id"] . ".ico";
- $icon = file_exists($icon_file) ? $icon_file : "images/blank_icon.gif";
+ $icon_url = Feeds::_get_icon_url($row['id'], 'images/blank_icon.gif');
?>
- <img class="icon" src="<?= $icon_file ?>">
+ <img class="icon" src="<?= htmlspecialchars($icon_url) ?>">
<a target="_blank" href="<?= htmlspecialchars($row["site_url"]) ?>">
<?= htmlspecialchars($row["title"]) ?>