From 61f6cf47898c6125ed53b046a0a5ca07831b27ad Mon Sep 17 00:00:00 2001 From: buckaroo-labs <46908086+buckaroo-labs@users.noreply.github.com> Date: Wed, 20 Dec 2023 19:34:24 -0800 Subject: [PATCH 1/4] Update bookmarks-thumbnail.inc.tpl.php avoid warning --- data/templates/sscuttlizr/bookmarks-thumbnail.inc.tpl.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/templates/sscuttlizr/bookmarks-thumbnail.inc.tpl.php b/data/templates/sscuttlizr/bookmarks-thumbnail.inc.tpl.php index 77cc67f..1cdffde 100644 --- a/data/templates/sscuttlizr/bookmarks-thumbnail.inc.tpl.php +++ b/data/templates/sscuttlizr/bookmarks-thumbnail.inc.tpl.php @@ -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 ''; echo ''; -?> \ No newline at end of file +?> From a31eec599c12d86767fd181ef8c4da657538f543 Mon Sep 17 00:00:00 2001 From: buckaroo-labs <46908086+buckaroo-labs@users.noreply.github.com> Date: Wed, 20 Dec 2023 19:35:08 -0800 Subject: [PATCH 2/4] Update bottom.inc.php avoid warning --- data/templates/sscuttlizr/bottom.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/templates/sscuttlizr/bottom.inc.php b/data/templates/sscuttlizr/bottom.inc.php index 4e5b226..3cb3ae8 100644 --- a/data/templates/sscuttlizr/bottom.inc.php +++ b/data/templates/sscuttlizr/bottom.inc.php @@ -5,11 +5,13 @@ echo ''.T_('About').''; echo ' - '; echo T_("Propulsed by "); echo " SemanticScuttle"; - +//2023-12-20 add if block to avoid warning +if (isset($GLOBALS['enableWebsiteThumbnails'])) { if($GLOBALS['enableWebsiteThumbnails']) { // Licence to the thumbnails provider (OBLIGATORY IF YOU USE ARTVIPER SERVICE) echo ' (Thumbnails by webdesign)'; } +} ?> From 08fb6f8765c19b90e73706d76a9de6b4cadfd8fe Mon Sep 17 00:00:00 2001 From: buckaroo-labs <46908086+buckaroo-labs@users.noreply.github.com> Date: Wed, 20 Dec 2023 19:39:28 -0800 Subject: [PATCH 3/4] Update top.inc.php --- data/templates/sscuttlizr/top.inc.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/data/templates/sscuttlizr/top.inc.php b/data/templates/sscuttlizr/top.inc.php index fcd921e..7a355d6 100644 --- a/data/templates/sscuttlizr/top.inc.php +++ b/data/templates/sscuttlizr/top.inc.php @@ -1,16 +1,16 @@
- - + +