aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/dir_fns.php2
-rw-r--r--mod/directory.php3
2 files changed, 2 insertions, 3 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php
index 319be25c4..cd812ddc7 100644
--- a/include/dir_fns.php
+++ b/include/dir_fns.php
@@ -23,7 +23,7 @@ function dir_sort_links() {
function dir_safe_mode(&$a) {
$observer = get_observer_hash();
-// if ($observer)
+ if ($observer)
$safe_mode = get_xconfig($observer,'directory','safe_mode');
if($safe_mode == 0)
$toggle = t('Enable Safe Search');
diff --git a/mod/directory.php b/mod/directory.php
index 61a40f8d4..657ecd8f9 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -94,9 +94,8 @@ function directory_content(&$a) {
$numtags = get_config('system','directorytags');
$kw = ((intval($numtags)) ? $numtags : 24);
-// $query = $url . '?f=&kw=' . $kw . (($safe_mode != 1) ? '&safe=' . $safe_mode : '');
$query = $url . '?f=&kw=' . $kw . (($safe_mode != 1) ? '&safe=' . $safe_mode : '');
-logger('query: ' . $query);
+
if($search)
$query .= '&name=' . urlencode($search) . '&keywords=' . urlencode($search);
if(strpos($search,'@'))