]> _ Git - psq.git/commitdiff
log
authorLouis Jeckel <louis.jeckel@outlook.com>
Thu, 3 Dec 2020 11:52:21 +0000 (12:52 +0100)
committerLouis Jeckel <louis.jeckel@outlook.com>
Thu, 3 Dec 2020 11:52:21 +0000 (12:52 +0100)
app/Invokables/GetPageTitleFromUrl.php
app/Pdftk.php

index 33aff915360618e1fa8bedf56bc590749b3c3306..1bb8b35ef58808d2ef157f5aa4402e0137e3daed 100644 (file)
@@ -10,6 +10,7 @@ class GetPageTitleFromUrl
     {
 
 
+        \Log("get title $url");
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_URL, $url);
 
@@ -38,7 +39,9 @@ class GetPageTitleFromUrl
             return $title[1] ?? $url;
         }
 
-        return mb_strimwidth($url, 0, 200, '...');
+        $title = mb_strimwidth($url, 0, 200, '...');
+        \Log::debug("Title $title" );
+        return $title;
     }
 
 }
index a2adcce0bd5cdc950a263f6e11af66e1dee8ab77..44f7afee0867f41510af9d0e3b66681c91218a65 100644 (file)
@@ -62,6 +62,7 @@ class Pdftk
     public static function replaceLinks($file, callable $callback)
     {
 
+        \Log::debug("Replace links");
         $uncompressed = sys_get_temp_dir().'/'.uniqid('pdftk', false);
         self::uncompress($file, $uncompressed);