xref: /dokuwiki/inc/Action/Profile.php (revision ec7012214a693c8b3103377245a7d797cf8f9608)
1<?php
2
3namespace dokuwiki\Action;
4
5use dokuwiki\Action\Exception\ActionAbort;
6
7/**
8 * Class Profile
9 *
10 * Handle the profile form
11 *
12 * @package dokuwiki\Action
13 */
14class Profile extends AbstractUserAction {
15
16    /** @inheritdoc */
17    public function minimumPermission() {
18        return AUTH_NONE;
19    }
20
21    /** @inheritdoc */
22    public function preProcess() {
23        global $lang;
24        if(updateprofile()) {
25            msg($lang['profchanged'], 1);
26            throw new ActionAbort('show');
27        }
28    }
29
30    /** @inheritdoc */
31    public function tplContent() {
32        html_updateprofile();
33    }
34
35}
36