xref: /dokuwiki/inc/Action/Diff.php (revision ab583a1bc44ef1ef3b917647fc361aabd055c2ac)
1<?php
2
3namespace dokuwiki\Action;
4
5/**
6 * Class Diff
7 *
8 * Show the differences between two revisions
9 *
10 * @package dokuwiki\Action
11 */
12class Diff extends AbstractAction {
13
14    /** @inheritdoc */
15    function minimumPermission() {
16        return AUTH_READ;
17    }
18
19    public function preProcess() {
20        global $INPUT;
21
22        // store the selected diff type in cookie
23        $difftype = $INPUT->str('difftype');
24        if(!empty($difftype)) {
25            set_doku_pref('difftype', $difftype);
26        }
27    }
28
29}
30