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