xref: /dokuwiki/inc/Action/Source.php (revision e86f6b02caa7933ce6a8a2358ceb43ed6a3eccff)
1<?php
2
3namespace dokuwiki\Action;
4
5/**
6 * Class Source
7 *
8 * Show the source of a page
9 *
10 * @package dokuwiki\Action
11 */
12class Source extends AbstractAction {
13
14    /** @inheritdoc */
15    public function minimumPermission() {
16        return AUTH_READ;
17    }
18
19    /** @inheritdoc */
20    public function preProcess() {
21        global $TEXT;
22        global $INFO;
23        global $ID;
24        global $REV;
25
26        if($INFO['exists']) {
27            $TEXT = rawWiki($ID, $REV);
28        }
29    }
30
31    /** @inheritdoc */
32    public function tplContent() {
33        html_edit();
34    }
35
36}
37