You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

40 lines
685 B

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