[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/Action/ -> Conflict.php (source)

   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          }
  24          return AUTH_CREATE;
  25      }
  26  
  27      /** @inheritdoc */
  28      public function tplContent()
  29      {
  30          global $PRE;
  31          global $TEXT;
  32          global $SUF;
  33          global $SUM;
  34  
  35          $text = con($PRE, $TEXT, $SUF);
  36          (new PageConflict($text, $SUM))->show();
  37      }
  38  }