Update bookmarks-thumbnail.inc.tpl.php

avoid warning
This commit is contained in:
buckaroo-labs 2023-12-20 19:34:24 -08:00 committed by GitHub
parent a89a4c07b8
commit 61f6cf4789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,9 @@
*
* Expects a $row variable with bookmark data.
*/
//2023-12-20 add line to avoid warning
if (!isset($GLOBALS['enableWebsiteThumbnails'])) return;
if (!$GLOBALS['enableWebsiteThumbnails']) {
return;
}
@ -15,4 +18,4 @@ $thumbnailHash = md5(
//echo '<a href="'. $address .'"'. $rel .' ><img class="thumbnail" src="http://www.artviper.net/screenshots/screener.php?url='.$address.'&w=120&sdx=1280&userID='.$GLOBALS['thumbnailsUserId'].'&hash='.$thumbnailHash.'" />';
echo '<img class="thumbnail" onclick="window.location.href=\''.htmlspecialchars($address).'\'" src="http://www.artviper.net/screenshots/screener.php?url='.htmlspecialchars($address).'&amp;w=120&amp;sdx=1280&amp;userID='.$GLOBALS['thumbnailsUserId'].'&amp;hash='.$thumbnailHash.'" />';
?>
?>