aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Action/Revisions.php
blob: 9d8e6047c53df3bb37e0a7bc3e8f66ea88fd9165 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

namespace dokuwiki\Action;

use dokuwiki\Ui\PageRevisions;
use dokuwiki\Ui;

/**
 * Class Revisions
 *
 * Show the list of old revisions of the current page
 *
 * @package dokuwiki\Action
 */
class Revisions extends AbstractAction
{
    /** @inheritdoc */
    public function minimumPermission()
    {
        return AUTH_READ;
    }

    /** @inheritdoc */
    public function tplContent()
    {
        global $INFO, $INPUT;
        (new PageRevisions($INFO['id']))->show($INPUT->int('first', -1));
    }
}