]> git.mxchange.org Git - friendica.git/commitdiff
dirfind: move pagination into template
authorrabuzarus <>
Sat, 17 Oct 2015 20:09:19 +0000 (22:09 +0200)
committerrabuzarus <>
Sat, 17 Oct 2015 20:09:19 +0000 (22:09 +0200)
mod/dirfind.php
mod/match.php
view/templates/match.tpl

index 39c13dcb73462edb67d1c94ec4e609eb1ee5dc3a..9e02a47e2075e98421c526f026440e345ebe3a6b 100644 (file)
@@ -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;
 }
index 30d057a0da865eab3a0dc25130ff41118cc06179..380f6e74a44e58cc95ea168444af91c2f44c63c6 100644 (file)
@@ -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;
 }
index db612e3dc54c8422b023615d685b02664ad0594d..d269a253bcae481e492ba4e163fdc17ffaeef705 100644 (file)
@@ -36,3 +36,5 @@
 {{/foreach}}
 
 <div class="clear"></div>
+
+{{$paginate}}