[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace dokuwiki\Action; 4 5 use dokuwiki\Ui\PageConflict; 6 use dokuwiki\Ui; 7 8 /** 9 * Class Conflict 10 * 11 * Show the conflict resolution screen 12 * 13 * @package dokuwiki\Action 14 */ 15 class 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 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body