X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FDirectory.php;h=cdf43b8f953432528a02d154a1ac0fb3c8f2ac0c;hb=aeae65daf8514fe75dc165803de9973e49792f66;hp=69588604db9b3f021463777626775ad6f8d274eb;hpb=47d03058d13531898962ba10f6708c694441e9b3;p=friendica.git diff --git a/src/Module/Directory.php b/src/Module/Directory.php index 69588604db..cdf43b8f95 100644 --- a/src/Module/Directory.php +++ b/src/Module/Directory.php @@ -33,13 +33,6 @@ class Directory extends BaseModule } } - public static function post() - { - if (!empty($_POST['search'])) { - self::getApp()->data['search'] = $_POST['search']; - } - } - public static function content() { $app = self::getApp(); @@ -47,7 +40,7 @@ class Directory extends BaseModule if (($config->get('system', 'block_public') && !local_user() && !remote_user()) || ($config->get('system', 'block_local_dir') && !local_user() && !remote_user())) { - throw new HTTPException\ForbiddenException(); + throw new HTTPException\ForbiddenException(L10n::t('Public access denied.')); } $output = ''; @@ -151,10 +144,10 @@ class Directory extends BaseModule $location = ''; } - $gender = (!empty($profile['gender']) ? L10n::t('Gender:') : false); - $marital = (!empty($profile['marital']) ? L10n::t('Status:') : false); + $gender = (!empty($profile['gender']) ? L10n::t('Gender:') : false); + $marital = (!empty($profile['marital']) ? L10n::t('Status:') : false); $homepage = (!empty($profile['homepage']) ? L10n::t('Homepage:') : false); - $about = (!empty($profile['about']) ? L10n::t('About:') : false); + $about = (!empty($profile['about']) ? L10n::t('About:') : false); $location_e = $location;