1<?php
2
3namespace dokuwiki\Menu\Item;
4
5/**
6 * Class Register
7 *
8 * Open the view to register a new account
9 */
10class Register extends AbstractItem {
11
12    /** @inheritdoc */
13    public function __construct() {
14        global $INPUT;
15        parent::__construct();
16
17        if($INPUT->server->str('REMOTE_USER')) {
18            throw new \RuntimeException("no register when already logged in");
19        }
20
21        $this->svg = DOKU_INC_COMPAT . 'lib/images/menu/account-plus.svg';
22    }
23
24}
25