aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Action/Profile.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Action/Profile.php')
-rw-r--r--inc/Action/Profile.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/Action/Profile.php b/inc/Action/Profile.php
index 0ffcb260b..41615af07 100644
--- a/inc/Action/Profile.php
+++ b/inc/Action/Profile.php
@@ -2,6 +2,7 @@
namespace dokuwiki\Action;
+use dokuwiki\Ui\UserProfile;
use dokuwiki\Action\Exception\ActionAbort;
use dokuwiki\Action\Exception\ActionDisabledException;
use dokuwiki\Extension\AuthPlugin;
@@ -29,7 +30,7 @@ class Profile extends AbstractUserAction
/** @var AuthPlugin $auth */
global $auth;
- if(!$auth->canDo('Profile')) throw new ActionDisabledException();
+ if (!$auth->canDo('Profile')) throw new ActionDisabledException();
}
/** @inheritdoc */
@@ -45,7 +46,6 @@ class Profile extends AbstractUserAction
/** @inheritdoc */
public function tplContent()
{
- (new Ui\UserProfile)->show();
+ (new UserProfile())->show();
}
-
}