From b7a48b905e6ecca6c6630a9ebfe7134391bd65f2 Mon Sep 17 00:00:00 2001
From: ghost
Date: Wed, 2 Aug 2023 14:25:48 +0300
Subject: [PATCH] update method names
---
library/mysql.php | 4 ++--
public/explore.php | 4 ++--
public/search.php | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/library/mysql.php b/library/mysql.php
index 04f0099..f5e1478 100644
--- a/library/mysql.php
+++ b/library/mysql.php
@@ -465,7 +465,7 @@ class MySQL {
return $query->fetch()->total;
}
- public function getTotalHostPageIdSourcesByHostPageIdTarget(int $hostPageIdTarget) {
+ public function getTotalHostPageToHostPageByHostPageIdTarget(int $hostPageIdTarget) {
$query = $this->_db->prepare('SELECT COUNT(*) AS `total` FROM `hostPageToHostPage` WHERE `hostPageIdTarget` = ?');
@@ -474,7 +474,7 @@ class MySQL {
return $query->fetch()->total;
}
- public function getHostPageIdSourcesByHostPageIdTarget(int $hostPageIdTarget, int $limit = 1000) {
+ public function getHostPageToHostPageByHostPageIdTarget(int $hostPageIdTarget, int $limit = 1000) {
$query = $this->_db->prepare('SELECT * FROM `hostPageToHostPage` WHERE `hostPageIdTarget` = ? LIMIT ' . (int) $limit);
diff --git a/public/explore.php b/public/explore.php
index a569f5c..f690640 100644
--- a/public/explore.php
+++ b/public/explore.php
@@ -253,14 +253,14 @@ $placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page or enter the
- getTotalHostPageIdSourcesByHostPageIdTarget($hp); ?>
+ getTotalHostPageToHostPageByHostPageIdTarget($hp); ?>
- getHostPageIdSourcesByHostPageIdTarget($hp) as $hostPageIdSource) { ?>
+ getHostPageToHostPageByHostPageIdTarget($hp) as $hostPageIdSource) { ?>
getFoundHostPage($hostPageIdSource->hostPageIdSource)) { ?>
getLastPageDescription($hostPageIdSource->hostPageIdSource); ?>
diff --git a/public/search.php b/public/search.php
index 64c805e..6a7c8b0 100644
--- a/public/search.php
+++ b/public/search.php
@@ -339,7 +339,7 @@ if (filter_var($q, FILTER_VALIDATE_URL) && preg_match(CRAWL_URL_REGEXP, $q)) {
- mime != 'text' && $totalHostPageIdSources = $db->getTotalHostPageIdSourcesByHostPageIdTarget($result->id)) { ?>
+ mime != 'text' && $totalHostPageIdSources = $db->getTotalHostPageToHostPageByHostPageIdTarget($result->id)) { ?>
- getHostPageIdSourcesByHostPageIdTarget($result->id, 5) as $hostPageIdSource) { ?>
+ getHostPageToHostPageByHostPageIdTarget($result->id, 5) as $hostPageIdSource) { ?>
getFoundHostPage($hostPageIdSource->hostPageIdSource)) { ?>