Merge pull request #959 from MrPetovan/task/8293-forumdirectory-updates

[forumdirectory] Add L10n parameter to Pager constructor call
pull/964/head
Tobias Diekershoff 2020-02-16 20:09:02 +01:00 committed by GitHub
commit ca3213b394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ function forumdirectory_content(App $a)
$sql_extra = " AND ((`profile`.`name` LIKE '%$search%') OR $sql_extra = " AND ((`profile`.`name` LIKE '%$search%') OR
(`user`.`nickname` LIKE '%$search%') OR (`user`.`nickname` LIKE '%$search%') OR
(`profile`.`pdesc` LIKE '%$search%') OR (`profile`.`about` LIKE '%$search%') OR
(`profile`.`locality` LIKE '%$search%') OR (`profile`.`locality` LIKE '%$search%') OR
(`profile`.`region` LIKE '%$search%') OR (`profile`.`region` LIKE '%$search%') OR
(`profile`.`country-name` LIKE '%$search%') OR (`profile`.`country-name` LIKE '%$search%') OR
@ -99,7 +99,7 @@ function forumdirectory_content(App $a)
$total = $cnt['total']; $total = $cnt['total'];
} }
$pager = new Pager(DI::args()->getQueryString(), 60); $pager = new Pager(DI::l10n(), DI::args()->getQueryString(), 60);
$order = " ORDER BY `name` ASC "; $order = " ORDER BY `name` ASC ";