]> 91.132.146.200 Git - insipid.git/commitdiff
fixed lang property. fixed search index update
authorBanana <mail@bananas-playground.net>
Tue, 27 Dec 2022 13:08:33 +0000 (14:08 +0100)
committerBanana <mail@bananas-playground.net>
Tue, 27 Dec 2022 13:08:33 +0000 (14:08 +0100)
ChangeLog
webroot/lib/lang/eng.lang.ini
webroot/lib/lang/ger.lang.ini
webroot/lib/link.class.php
webroot/lib/management.class.php

index 4010a89a89547014b5543d900d086bb681476b29..34e7b2ca6d0a4d0bc97774ab40a29c455b962d1c 100644 (file)
--- 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)
 
index 20a5b88ca6d1702bd8f11a19c38fafef5d6e801b..a3cb8ffa1a3cb18db012a942c7665375c05760aa 100644 (file)
@@ -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"
index d542b4ba7cbe3969c51f280a4e16fc42b0262bfe..d42fe41cf7bca21f80da52a8fa7904a30a4c982b 100644 (file)
@@ -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"
index 47b14a773db57f6791211e702aee1ada9a1f14d7..2e304c12cf05fcad7934a73c6c7f677c635403cc 100644 (file)
@@ -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);
index 4358c20b31ac5c3de3ffe734ecd2cb8aa7ada582..38098ad6b1fb24f608d932fe8dde9e7aba64f387 100644 (file)
@@ -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;