Browse Source

Update Profile\View page

If the url is bad, then href in the link will be empty.
Visman 3 years ago
parent
commit
c724ce566c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Models/Pages/Profile/View.php

+ 2 - 1
app/Models/Pages/Profile/View.php

@@ -14,6 +14,7 @@ use ForkBB\Models\Page;
 use ForkBB\Models\Pages\Profile;
 use ForkBB\Models\PM\Cnst;
 use function \ForkBB\__;
+use function \ForkBB\url;
 
 class View extends Profile
 {
@@ -194,7 +195,7 @@ class View extends Profile
                 'type'    => 'link',
                 'caption' => 'Website',
                 'value'   => $this->curUser->censorUrl,
-                'href'    => $this->curUser->censorUrl,
+                'href'    => url($this->curUser->censorUrl),
                 'rel'     => 'ugc',
             ];
         }