dirfind: move pagination into template

This commit is contained in:
rabuzarus 2015-10-17 22:09:19 +02:00
parent 67f699403a
commit 4b8ca578d1
3 changed files with 4 additions and 2 deletions

View file

@ -156,6 +156,7 @@ function dirfind_content(&$a, $prefix = "") {
$o .= replace_macros($tpl,array( $o .= replace_macros($tpl,array(
'title' => sprintf( t('People Search - %s'), $search), 'title' => sprintf( t('People Search - %s'), $search),
'$entries' => $entries, '$entries' => $entries,
'$paginate' => paginate($a),
)); ));
} }
@ -165,6 +166,5 @@ function dirfind_content(&$a, $prefix = "") {
} }
$o .= paginate($a);
return $o; return $o;
} }

View file

@ -82,6 +82,7 @@ function match_content(&$a) {
$o .= replace_macros($tpl,array( $o .= replace_macros($tpl,array(
'$title' => t('Profile Match'), '$title' => t('Profile Match'),
'entries' => $entries, 'entries' => $entries,
'$paginate' => paginate($a),
)); ));
} }
@ -91,6 +92,5 @@ function match_content(&$a) {
} }
$o .= paginate($a);
return $o; return $o;
} }

View file

@ -36,3 +36,5 @@
{{/foreach}} {{/foreach}}
<div class="clear"></div> <div class="clear"></div>
{{$paginate}}