]> git.mxchange.org Git - friendica.git/commitdiff
directory: move pagination into template
authorrabuzarus <>
Sat, 17 Oct 2015 19:45:55 +0000 (21:45 +0200)
committerrabuzarus <>
Sat, 17 Oct 2015 19:45:55 +0000 (21:45 +0200)
mod/directory.php
view/templates/directory_header.tpl

index d256c590aaf890102c8c4ec698055fff93a8fe0d..46c4f38ad3f8cdf94fbf1eb01355f481b68b71b1 100644 (file)
@@ -196,11 +196,10 @@ function directory_content(&$a) {
                        '$finding' => t('Finding:'),
                        '$findterm' => (strlen($search) ? $search : ""),
                        '$title' => t('Site Directory'),
-                       '$submit' => t('Find')
+                       '$submit' => t('Find'),
+                       '$paginate' => paginate($a),
                ));
 
-               $o .= paginate($a);
-
        }
        else
                info( t("No entries \x28some entries may be hidden\x29.") . EOL);
index 07d625ed4e636ac20093961f3ab3521bc167f4ab..eda887a898ee962115ad86b5be1f1851b257f964 100644 (file)
@@ -26,4 +26,6 @@
        {{include file="directory_item.tpl"}}
 {{/foreach}}
 
-<div class="directory-end" ></div>
\ No newline at end of file
+<div class="directory-end" ></div>
+
+{{$paginate}}