]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Directory.php
Move mod/like to src/Module/Like
[friendica.git] / src / Module / Directory.php
index 69588604db9b3f021463777626775ad6f8d274eb..cdf43b8f953432528a02d154a1ac0fb3c8f2ac0c 100644 (file)
@@ -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;