xref: /dokuwiki/inc/Action/Profile.php (revision f21dad3906d4ec6b3d86685599409894630abdc1)
1<?php
2/**
3 * Created by IntelliJ IDEA.
4 * User: andi
5 * Date: 2/11/17
6 * Time: 9:47 AM
7 */
8
9namespace dokuwiki\Action;
10
11use dokuwiki\Action\Exception\ActionAbort;
12
13class Profile extends AbstractUserAction {
14
15    /** @inheritdoc */
16    function minimumPermission() {
17        return AUTH_NONE;
18    }
19
20    public function preProcess() {
21        global $lang;
22        if(updateprofile()) {
23            msg($lang['profchanged'], 1);
24            throw new ActionAbort('show');
25        }
26    }
27
28    public function tplContent() {
29        html_updateprofile();
30    }
31
32}
33