mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-02-03 10:25:52 +00:00
change method name
This commit is contained in:
parent
9e53618193
commit
0ea665f6e7
@ -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)) {
|
||||
|
||||
|
@ -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` = ?');
|
||||
|
||||
|
@ -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) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user