From: Banana Date: Tue, 27 Dec 2022 13:08:33 +0000 (+0100) Subject: fixed lang property. fixed search index update X-Git-Tag: 2.8.1_20221231~6 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=d05e95ff9f48195ad9edd577e4a58ede5e39d728;p=insipid.git fixed lang property. fixed search index update --- diff --git a/ChangeLog b/ChangeLog index 4010a89..34e7b2c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ version 2.x - Deathwind Chapel () + Moved debug setting into config + Updated shellcommand class and added the link to the github repo + + Fixed/Updated the creation of the webpage thumbnail using google pagespeed insights api + + Fixed search index update + + Fixed missing lang property version 2.8 - Wastelands (2022-12-10) diff --git a/webroot/lib/lang/eng.lang.ini b/webroot/lib/lang/eng.lang.ini index 20a5b88..a3cb8ff 100644 --- a/webroot/lib/lang/eng.lang.ini +++ b/webroot/lib/lang/eng.lang.ini @@ -112,7 +112,7 @@ stats.image.storage = "Local image storage" stats.image.storage.diskspace = "Diskspace used" stats.image.delete.all = "Delete all" stats.full.backup = "Full DB backup" -stats.full.backup.full = "Create a complete DB export from your data." +stats.full.backup.help = "Create a complete DB export from your data." stats.full.backup.create = "Create backup" stats.search.index = "Search index" stats.search.index.help = "Update search index" diff --git a/webroot/lib/lang/ger.lang.ini b/webroot/lib/lang/ger.lang.ini index d542b4b..d42fe41 100644 --- a/webroot/lib/lang/ger.lang.ini +++ b/webroot/lib/lang/ger.lang.ini @@ -112,7 +112,7 @@ stats.image.storage = "Lokale Bild Datenmenge" stats.image.storage.diskspace = "Verbrauchte Datenmenge" stats.image.delete.all = "Alle löschen" stats.full.backup = "Kompletter DB Backup" -stats.full.backup.full = "Erstelle einen kompletten DB Export deiner Daten." +stats.full.backup.help = "Erstelle einen kompletten DB Export deiner Daten." stats.full.backup.create = "Backup erstellen" stats.search.index = "Suchindex" stats.search.index.help = "Suchindex aktualisieren" diff --git a/webroot/lib/link.class.php b/webroot/lib/link.class.php index 47b14a7..2e304c1 100644 --- a/webroot/lib/link.class.php +++ b/webroot/lib/link.class.php @@ -75,7 +75,7 @@ class Link { `title`, `image`, `hash` - FROM `" . DB_PREFIX . "_link` + FROM `".DB_PREFIX."_link` WHERE `hash` = '" . $this->DB->real_escape_string($hash) . "'"; $query = $this->DB->query($queryStr); if (!empty($query) && $query->num_rows == 1) { @@ -106,7 +106,7 @@ class Link { if (!empty($hash)) { $queryStr = "SELECT `id`,`link`,`description`,`title`,`image`,`hash`, `created` - FROM `" . DB_PREFIX . "_link` + FROM `".DB_PREFIX."_link` WHERE `hash` = '" . $this->DB->real_escape_string($hash) . "'"; $query = $this->DB->query($queryStr); diff --git a/webroot/lib/management.class.php b/webroot/lib/management.class.php index 4358c20..38098ad 100644 --- a/webroot/lib/management.class.php +++ b/webroot/lib/management.class.php @@ -784,7 +784,9 @@ class Management { $searchStr .= ' '.implode(' ',$l['tags']); $searchStr .= ' '.implode(' ',$l['categories']); $searchStr .= ' '.$_t['host']; - $searchStr .= ' '.implode(' ',explode('/',$_t['path'])); + if(isset($_t['path'])) { + $searchStr .= ' '.implode(' ',explode('/',$_t['path'])); + } $searchStr = trim($searchStr); $searchStr = strtolower($searchStr); @@ -795,7 +797,7 @@ class Management { $this->DB->query($queryStr); - unset($LinkObj,$l,$searchStr,$t,$c,$queryStr); + unset($LinkObj,$l,$searchStr,$_t,$queryStr); } $ret = true;