浏览代码

Update Profile\View page

If the url is bad, then href in the link will be empty.
Visman 3 年之前
父节点
当前提交
c724ce566c
共有 1 个文件被更改,包括 2 次插入1 次删除
  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',
             ];
         }