Function renamed
This commit is contained in:
parent
70022393b7
commit
ede69a8673
|
@ -398,7 +398,7 @@ class Tag
|
||||||
* @param integer $limit
|
* @param integer $limit
|
||||||
* @return array with URI-ID
|
* @return array with URI-ID
|
||||||
*/
|
*/
|
||||||
public static function getURIIdListForTag(string $search, int $uid = 0, int $start = 0, int $limit = 100)
|
public static function getURIIdListByTag(string $search, int $uid = 0, int $start = 0, int $limit = 100)
|
||||||
{
|
{
|
||||||
$condition = ["`name` = ? AND (NOT `private` OR (`private` AND `uid` = ?))", $search, $uid];
|
$condition = ["`name` = ? AND (NOT `private` OR (`private` AND `uid` = ?))", $search, $uid];
|
||||||
$params = [
|
$params = [
|
||||||
|
|
|
@ -149,7 +149,7 @@ class Index extends BaseSearch
|
||||||
|
|
||||||
if ($tag) {
|
if ($tag) {
|
||||||
Logger::info('Start tag search.', ['q' => $search]);
|
Logger::info('Start tag search.', ['q' => $search]);
|
||||||
$uriids = Tag::getURIIdListForTag($search, local_user(), $pager->getStart(), $pager->getItemsPerPage());
|
$uriids = Tag::getURIIdListByTag($search, local_user(), $pager->getStart(), $pager->getItemsPerPage());
|
||||||
|
|
||||||
if (!empty($uriids)) {
|
if (!empty($uriids)) {
|
||||||
$params = ['order' => ['id' => true], 'group_by' => ['uri-id']];
|
$params = ['order' => ['id' => true], 'group_by' => ['uri-id']];
|
||||||
|
|
Loading…
Reference in a new issue