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