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