aboutsummaryrefslogtreecommitdiffstats
path: root/include/dir_fns.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-12-16 18:33:16 -0800
committerfriendica <info@friendica.com>2014-12-16 18:33:16 -0800
commit2fcbb9c4b3b4c5c3216b279820ccf7902337ae9c (patch)
tree133705a8c2419df81a33ac2373655b0f15e9201a /include/dir_fns.php
parent6c8ff37591f71add7fc4a747ae1cc80febacfe85 (diff)
downloadvolse-hubzilla-2fcbb9c4b3b4c5c3216b279820ccf7902337ae9c.tar.gz
volse-hubzilla-2fcbb9c4b3b4c5c3216b279820ccf7902337ae9c.tar.bz2
volse-hubzilla-2fcbb9c4b3b4c5c3216b279820ccf7902337ae9c.zip
fix some directory anomolies
Diffstat (limited to 'include/dir_fns.php')
-rw-r--r--include/dir_fns.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php
index 8bec974fb..af6f78c01 100644
--- a/include/dir_fns.php
+++ b/include/dir_fns.php
@@ -53,6 +53,8 @@ function check_upstream_directory() {
function dir_sort_links() {
// Build urls without order and pubforums so it's easy to tack on the changed value
// Probably there's an easier way to do this
+
+ $current_order = (($_REQUEST['order']) ? $_REQUEST['order'] : 'normal');
$url = 'directory?';
$tmp = $_REQUEST;
unset($tmp['order']);
@@ -71,7 +73,7 @@ function dir_sort_links() {
'$pubforums' => t('Public Forums Only'),
'$pubforumsonly' => x($_REQUEST,'pubforums') ? $_REQUEST['pubforums'] : '',
'$sort' => t('Sort'),
- '$selected_sort' => x($_REQUEST,'order') ? $_REQUEST['order'] : 'normal',
+ '$selected_sort' => $current_order,
'$sorturl' => $sorturl,
'$forumsurl' => $forumsurl,
@@ -230,7 +232,7 @@ function update_directory_entry($ud) {
function local_dir_update($uid,$force) {
- logger('local_dir_update', LOGGER_DEBUG);
+ logger('local_dir_update: uid: ' . $uid, LOGGER_DEBUG);
$p = q("select channel.channel_hash, channel_address, channel_timezone, profile.* from profile left join channel on channel_id = uid where uid = %d and is_default = 1",
intval($uid)