From c417a43338087de82bd1c067c479320a923fe619 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 3 Feb 2015 15:50:12 -0800 Subject: styling for the directory page when it comes to ratings --- mod/directory.php | 2 ++ mod/dirsearch.php | 9 --------- mod/ratingsearch.php | 6 ------ 3 files changed, 2 insertions(+), 15 deletions(-) (limited to 'mod') diff --git a/mod/directory.php b/mod/directory.php index 7f9283ba4..d9316ef67 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -192,6 +192,8 @@ function directory_content(&$a) { if($rr['total_ratings']) $total_ratings = sprintf( tt("%d rating", "%d ratings", $rr['total_ratings']), $rr['total_ratings']); + else + $total_ratings = ''; $profile = $rr; diff --git a/mod/dirsearch.php b/mod/dirsearch.php index fcd72e9eb..69b7e2eac 100644 --- a/mod/dirsearch.php +++ b/mod/dirsearch.php @@ -21,15 +21,6 @@ function dirsearch_content(&$a) { json_return_and_die($ret); } - - // If you've got a public directory server, you probably shouldn't block public access - - if((get_config('system','block_public')) && (! local_channel()) && (! remote_channel())) { - $ret['message'] = 'permission denied'; - json_return_and_die($ret); - } - - if(argc() > 1 && argv(1) === 'sites') { $ret = list_public_sites(); json_return_and_die($ret); diff --git a/mod/ratingsearch.php b/mod/ratingsearch.php index 558b459eb..9a537bf97 100644 --- a/mod/ratingsearch.php +++ b/mod/ratingsearch.php @@ -12,12 +12,6 @@ function ratingsearch_init(&$a) { json_return_and_die($ret); } - if((get_config('system','block_public')) && (! local_channel()) && (! remote_channel())) { - $ret['message'] = 'permission denied'; - json_return_and_die($ret); - } - - if(argc() > 1) $hash = argv(1); -- cgit v1.2.3