1<?php
2
3namespace dokuwiki\Action;
4
5use dokuwiki\Ui;
6
7/**
8 * Class Conflict
9 *
10 * Show the conflict resolution screen
11 *
12 * @package dokuwiki\Action
13 */
14class Conflict extends AbstractAction
15{
16    /** @inheritdoc */
17    public function minimumPermission()
18    {
19        global $INFO;
20        if ($INFO['exists']) {
21            return AUTH_EDIT;
22        } else {
23            return AUTH_CREATE;
24        }
25    }
26
27    /** @inheritdoc */
28    public function tplContent()
29    {
30        global $PRE;
31        global $TEXT;
32        global $SUF;
33        global $SUM;
34
35        $text = con($PRE, $TEXT, $SUF);
36        (new Ui\PageConflict($text, $SUM))->show();
37    }
38
39}
40