mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-02-07 12:24:28 +00:00
add related to image hostpages limit
This commit is contained in:
parent
adc791f378
commit
34b7291228
@ -234,9 +234,9 @@ class MySQL {
|
|||||||
return $query->rowCount();
|
return $query->rowCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getHostImageHostPages(int $hostImageId) {
|
public function getHostImageHostPages(int $hostImageId, int $limit = 5) {
|
||||||
|
|
||||||
$query = $this->_db->prepare('SELECT * FROM `hostImageToHostPage` WHERE `hostImageId` = ?');
|
$query = $this->_db->prepare('SELECT * FROM `hostImageToHostPage` WHERE `hostImageId` = ? LIMIT ' . (int) $limit);
|
||||||
|
|
||||||
$query->execute([$hostImageId]);
|
$query->execute([$hostImageId]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user