Completed
Push — master ( 2f70e4...9ba478 )
by Andreas
02:56
created

Source::tplContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace dokuwiki\Action;
4
5
/**
6
 * Class Source
7
 *
8
 * Show the source of a page
9
 *
10
 * @package dokuwiki\Action
11
 */
12
class 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