Function renamed

This commit is contained in:
Michael 2020-05-01 13:13:58 +00:00
parent 70022393b7
commit ede69a8673
2 changed files with 2 additions and 2 deletions

View file

@ -398,7 +398,7 @@ class Tag
* @param integer $limit
* @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];
$params = [

View file

@ -149,7 +149,7 @@ class Index extends BaseSearch
if ($tag) {
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)) {
$params = ['order' => ['id' => true], 'group_by' => ['uri-id']];