Codestyle + check trustedproxies
[dokuwiki.git] / inc / Action / Diff.php
blobc12de9cab33dc5fde742174208496c65d88e53da
1 <?php
3 namespace dokuwiki\Action;
5 use dokuwiki\Ui\PageDiff;
6 use dokuwiki\Ui;
8 /**
9 * Class Diff
11 * Show the differences between two revisions
13 * @package dokuwiki\Action
15 class Diff extends AbstractAction
17 /** @inheritdoc */
18 public function minimumPermission()
20 return AUTH_READ;
23 /** @inheritdoc */
24 public function preProcess()
26 global $INPUT;
28 // store the selected diff type in cookie
29 $difftype = $INPUT->str('difftype');
30 if (!empty($difftype)) {
31 set_doku_pref('difftype', $difftype);
35 /** @inheritdoc */
36 public function tplContent()
38 global $INFO;
39 (new PageDiff($INFO['id']))->preference('showIntro', true)->show();