aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Action/Revisions.php
blob: 4b2f82275b2cbc4865bcc6f481cb9c66e852e35f (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
<?php

namespace dokuwiki\Action;

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 Ui\PageRevisions($INFO['id']))->show($INPUT->int('first'));
    }
}