Fix offset is absolute in set not a page to be consistent with SQL
This commit is contained in:
parent
e6c93d31c1
commit
df4af8da9b
|
@ -652,7 +652,7 @@ class Tag
|
||||||
if (empty($tags)) {
|
if (empty($tags)) {
|
||||||
$tags = self::setGlobalTrendingHashtags($period, 1000);
|
$tags = self::setGlobalTrendingHashtags($period, 1000);
|
||||||
}
|
}
|
||||||
return array_slice($tags, $limit * $offset, $limit);
|
return array_slice($tags, $offset, $limit);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -735,7 +735,7 @@ class Tag
|
||||||
if (empty($tags)) {
|
if (empty($tags)) {
|
||||||
$tags = self::setLocalTrendingHashtags($period, 1000);
|
$tags = self::setLocalTrendingHashtags($period, 1000);
|
||||||
}
|
}
|
||||||
return array_slice($tags, $limit * $offset, $limit);
|
return array_slice($tags, $offset, $limit);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue