rename method
This commit is contained in:
parent
6f134bd9ca
commit
8d72b7d1e7
@ -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();
|
||||
|
@ -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 = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user