dirfind: move pagination into template
This commit is contained in:
parent
67f699403a
commit
4b8ca578d1
3 changed files with 4 additions and 2 deletions
|
@ -156,6 +156,7 @@ function dirfind_content(&$a, $prefix = "") {
|
|||
$o .= replace_macros($tpl,array(
|
||||
'title' => sprintf( t('People Search - %s'), $search),
|
||||
'$entries' => $entries,
|
||||
'$paginate' => paginate($a),
|
||||
));
|
||||
|
||||
}
|
||||
|
@ -165,6 +166,5 @@ function dirfind_content(&$a, $prefix = "") {
|
|||
|
||||
}
|
||||
|
||||
$o .= paginate($a);
|
||||
return $o;
|
||||
}
|
||||
|
|
|
@ -82,6 +82,7 @@ function match_content(&$a) {
|
|||
$o .= replace_macros($tpl,array(
|
||||
'$title' => t('Profile Match'),
|
||||
'entries' => $entries,
|
||||
'$paginate' => paginate($a),
|
||||
));
|
||||
|
||||
}
|
||||
|
@ -91,6 +92,5 @@ function match_content(&$a) {
|
|||
|
||||
}
|
||||
|
||||
$o .= paginate($a);
|
||||
return $o;
|
||||
}
|
||||
|
|
|
@ -36,3 +36,5 @@
|
|||
{{/foreach}}
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
{{$paginate}}
|
||||
|
|
Loading…
Reference in a new issue