From b247a346ba4c2571f76707e34384fad2bf7d47b9 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Sat, 16 Jul 2022 00:51:48 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B5=D1=88=D0=B8=D0=BB=20=D1=81=D0=BE?= =?UTF-8?q?=D1=85=D1=80=D0=B0=D0=BD=D1=8F=D1=82=D1=8C=20=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D1=8C=20=D1=86=D0=B5=D0=BB=D0=B8=D0=BA=D0=BE?= =?UTF-8?q?=D0=BC,=20=D0=B0=20=D0=BD=D0=B5=20=D1=82=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=BA=D0=BE=20=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE=D0=B2=D0=BE?= =?UTF-8?q?=D0=BA=20=D0=B8=20=D1=85=D1=8D=D1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/Core/MQTasks.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/lib/Core/MQTasks.class.php b/core/lib/Core/MQTasks.class.php index 6b817c7..c906cf6 100644 --- a/core/lib/Core/MQTasks.class.php +++ b/core/lib/Core/MQTasks.class.php @@ -295,10 +295,10 @@ DELETE from `jokes` WHERE `jokes`.id not in (SELECT id FROM t_temp);' $tmpFile = CACHE_DIR . '/' . basename($image); file_put_contents($tmpFile, file_get_contents($image)); - $lidArticle = SystemFunctions::previewText($lidArticle, 100); - $fullArticle = SystemFunctions::previewText($fullArticle, 300); + $lidArticlePost = SystemFunctions::previewText($lidArticle, 100); + $fullArticlePost = SystemFunctions::previewText($fullArticle, 300); - $post = '' . $title . '' . PHP_EOL . $lidArticle . PHP_EOL . $fullArticle; + $post = '' . $title . '' . PHP_EOL . $lidArticlePost . PHP_EOL . $fullArticlePost; $post .= PHP_EOL . 'Подробнее'; @@ -307,7 +307,7 @@ DELETE from `jokes` WHERE `jokes`.id not in (SELECT id FROM t_temp);' $res = $telegram->sendPhoto($tmpFile, $post); sendTelegram($post); @unlink($tmpFile); - $itemId = $DB->addItem('myslo', ['hash' => $hash, 'title' => $title]); + $itemId = $DB->addItem('myslo', ['hash' => $hash, 'title' => $title, 'image' => $image, 'text' => $lidArticle . PHP_EOL . $fullArticle, 'link' => $link]); return print_r($res, true);//'Добавлен новый элемент с ID ' . $itemId; } else {