diff options
Diffstat (limited to 'include/dir_fns.php')
-rw-r--r-- | include/dir_fns.php | 6 |
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) |