From 70f366ce1d102e4712af2408e6dcf5432b1926c2 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 21 Jun 2021 02:03:17 +0200 Subject: Use getEntityURL method of Application class This commit replaces all calls to "$Item->getURL()" with calls to the previously added "getEntityURL" method of the "Application" class. --- core/include/user/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/include/user/main.php') diff --git a/core/include/user/main.php b/core/include/user/main.php index 80969da..3b8b25a 100644 --- a/core/include/user/main.php +++ b/core/include/user/main.php @@ -50,7 +50,7 @@ try { $MainTemplate->set('HEAD', [ 'NAME' => $user_data['ATTR']['FULLNAME'], 'DESC' => description($user_data['BODY']['HTML'](), Application::get('USER.DESCRIPTION_SIZE')), - 'PERM' => $User->getURL(), + 'PERM' => $user_data['URL'], 'OG_IMAGES' => $User->getFiles() ]); @@ -72,7 +72,7 @@ catch(User\Exception $Exception) { $User = User\Factory::build($param); } - HTTP::redirect($User->getURL()); + HTTP::redirect(Application::getEntityURL($User)); } catch(User\Exception $Exception) { -- cgit v1.2.3