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