From 8d72b7d1e780413ea0452f1923cad6cc7ad1f5ff Mon Sep 17 00:00:00 2001 From: "E. S." Date: Fri, 15 Mar 2024 17:30:49 +0000 Subject: [PATCH] rename method --- handler/AdminHandler.php | 2 +- lib/posts.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/handler/AdminHandler.php b/handler/AdminHandler.php index b48ce46..9ed717d 100644 --- a/handler/AdminHandler.php +++ b/handler/AdminHandler.php @@ -323,7 +323,7 @@ class AdminHandler extends request_handler { csrf_check('editupl'.$id); $upload->setNote($lang, $note); - $texts = posts::getWithUpload($upload); + $texts = posts::getTextsWithUpload($upload); if (!empty($texts)) { foreach ($texts as $text) { $text->updateHtml(); diff --git a/lib/posts.php b/lib/posts.php index a7e71b9..9a3c4eb 100644 --- a/lib/posts.php +++ b/lib/posts.php @@ -357,7 +357,7 @@ class posts { * @param Upload $upload * @return PostText[] Array of PostTexts that includes specified upload */ - static function getWithUpload(Upload $upload): array { + static function getTextsWithUpload(Upload $upload): array { $db = DB(); $q = $db->query("SELECT id FROM posts_texts WHERE md LIKE '%{image:{$upload->randomId}%'"); $ids = [];