diff --git a/cli/yggo.php b/cli/yggo.php index f394d3a..c2c5227 100644 --- a/cli/yggo.php +++ b/cli/yggo.php @@ -130,7 +130,7 @@ switch ($argv[1]) { $snapFilesExists = true; - if (!$db->getHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) { + if (!$db->findHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) { if ($db->addHostPageSnapStorage($hostPageSnap->hostPageSnapId, $crc32name, $hostPageSnap->timeAdded)) { @@ -158,7 +158,7 @@ switch ($argv[1]) { $snapFilesExists = true; - if (!$db->getHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) { + if (!$db->findHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) { if ($db->addHostPageSnapStorage($hostPageSnap->hostPageSnapId, $crc32name, $hostPageSnap->timeAdded)) { diff --git a/library/mysql.php b/library/mysql.php index f59e4b1..d9b7d5e 100644 --- a/library/mysql.php +++ b/library/mysql.php @@ -559,7 +559,7 @@ class MySQL { return $this->_db->lastInsertId(); } - public function getHostPageSnapStorageByCRC32Name(int $hostPageSnapId, int $crc32name) { + public function findHostPageSnapStorageByCRC32Name(int $hostPageSnapId, int $crc32name) { $query = $this->_db->prepare('SELECT * FROM `hostPageSnapStorage` WHERE `hostPageSnapId` = ? AND `crc32name` = ?'); diff --git a/public/file.php b/public/file.php index 6f5b074..d9aac18 100644 --- a/public/file.php +++ b/public/file.php @@ -63,7 +63,7 @@ switch ($type) { // Generate storage id $crc32name = crc32(sprintf('%s.%s', $name, $i)); - if ($hostPageSnapStorage = $db->getHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) { + if ($hostPageSnapStorage = $db->findHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) { switch ($name) {