diff options
author | redmatrix <git@macgirvin.com> | 2016-03-31 17:32:51 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-03-31 17:32:51 -0700 |
commit | c0b3d7e1b480ceeed89b71efd056ed9edda2dfef (patch) | |
tree | 433552545eb0c746fb48666afdb74ff472bf17b1 /mod/directory.php | |
parent | 50d9b2934742ad9fb0dc8354d405789e3c14cd00 (diff) | |
parent | 9abd95fad3784a10fc48bc40f9b8a75d7d74edda (diff) | |
download | volse-hubzilla-c0b3d7e1b480ceeed89b71efd056ed9edda2dfef.tar.gz volse-hubzilla-c0b3d7e1b480ceeed89b71efd056ed9edda2dfef.tar.bz2 volse-hubzilla-c0b3d7e1b480ceeed89b71efd056ed9edda2dfef.zip |
Merge branch 'static'
Diffstat (limited to 'mod/directory.php')
-rw-r--r-- | mod/directory.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/directory.php b/mod/directory.php index fe5799c88..79c03777e 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -6,7 +6,7 @@ require_once('include/widgets.php'); require_once('include/bbcode.php'); function directory_init(&$a) { - $a->set_pager_itemspage(60); + App::set_pager_itemspage(60); if(x($_GET,'ignore')) { q("insert into xign ( uid, xchan ) values ( %d, '%s' ) ", @@ -158,7 +158,7 @@ function directory_content(&$a) { $query .= '&t=' . $token; if(! $globaldir) - $query .= '&hub=' . get_app()->get_hostname(); + $query .= '&hub=' . App::get_hostname(); if($search) $query .= '&name=' . urlencode($search) . '&keywords=' . urlencode($search); @@ -180,8 +180,8 @@ function directory_content(&$a) { if($sort_order) $query .= '&order=' . urlencode($sort_order); - if($a->pager['page'] != 1) - $query .= '&p=' . $a->pager['page']; + if(App::$pager['page'] != 1) + $query .= '&p=' . App::$pager['page']; logger('mod_directory: query: ' . $query); @@ -355,7 +355,7 @@ function directory_content(&$a) { ksort($entries); // Sort array by key so that foreach-constructs work as expected if($j['keywords']) { - $a->data['directory_keywords'] = $j['keywords']; + App::$data['directory_keywords'] = $j['keywords']; } logger('mod_directory: entries: ' . print_r($entries,true), LOGGER_DATA); @@ -406,7 +406,7 @@ function directory_content(&$a) { echo $o; killme(); } - if($a->pager['page'] == 1 && $j['records'] == 0 && strpos($search,'@')) { + if(App::$pager['page'] == 1 && $j['records'] == 0 && strpos($search,'@')) { goaway(z_root() . '/chanview/?f=&address=' . $search); } info( t("No entries (some entries may be hidden).") . EOL); |