xref: /dokuwiki/inc/Action/Conflict.php (revision 6dde4a8c9610360278bc6e0123f0813684d355b6)
1<?php
2
3namespace dokuwiki\Action;
4
5/**
6 * Class Conflict
7 *
8 * Show the conflict resolution screen
9 *
10 * @package dokuwiki\Action
11 */
12class Conflict extends AbstractAction {
13
14    /** @inheritdoc */
15    public function minimumPermission() {
16        global $INFO;
17        if($INFO['exists']) {
18            return AUTH_EDIT;
19        } else {
20            return AUTH_CREATE;
21        }
22    }
23
24    public function tplContent() {
25        global $PRE;
26        global $TEXT;
27        global $SUF;
28        global $SUM;
29
30        html_conflict(con($PRE, $TEXT, $SUF), $SUM);
31        html_diff(con($PRE, $TEXT, $SUF), false);
32    }
33
34}
35