Conflict.php 659 B

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