From: rabuzarus <> Date: Sat, 17 Oct 2015 19:45:55 +0000 (+0200) Subject: directory: move pagination into template X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b9d9bf8ecdc4e82637524eb59386ff8a7f54de6c;p=friendica.git directory: move pagination into template --- diff --git a/mod/directory.php b/mod/directory.php index d256c590aa..46c4f38ad3 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -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); diff --git a/view/templates/directory_header.tpl b/view/templates/directory_header.tpl index 07d625ed4e..eda887a898 100644 --- a/view/templates/directory_header.tpl +++ b/view/templates/directory_header.tpl @@ -26,4 +26,6 @@ {{include file="directory_item.tpl"}} {{/foreach}} -
\ No newline at end of file + + +{{$paginate}}