aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/directory.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/mod/directory.php b/mod/directory.php
index e80e9661d..d71a5584a 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -199,12 +199,15 @@ function directory_content(&$a) {
$a->data['directory_keywords'] = $j['keywords'];
}
-// logger('mod_directory: entries: ' . print_r($entries,true), LOGGER_DATA);
-
-
- if($dynamic) {
+ logger('mod_directory: entries: ' . print_r($entries,true), LOGGER_DEBUG);
+ if($_REQUEST['aj']) {
+ $o = replace_macros(get_markup_template('directajax.tpl'),array(
+ '$entries' => $entries
+ ));
+ echo $o;
+ killme();
}
else {
@@ -219,7 +222,7 @@ function directory_content(&$a) {
'$submit' => t('Find')
));
- $o .= alt_pager($a,$j['records'], t('next page'), t('previous page'));
+// $o .= alt_pager($a,$j['records'], t('next page'), t('previous page'));
}