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