[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

   1  <?php
   2  
   3  namespace dokuwiki\Action;
   4  
   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          global $INFO;
  17          if($INFO['exists']) {
  18              return AUTH_EDIT;
  19          } else {
  20              return AUTH_CREATE;
  21          }
  22      }
  23  
  24      public function tplContent() {
  25          global $PRE;
  26          global $TEXT;
  27          global $SUF;
  28          global $SUM;
  29  
  30          html_conflict(con($PRE, $TEXT, $SUF), $SUM);
  31          html_diff(con($PRE, $TEXT, $SUF), false);
  32      }
  33  
  34  }