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

Source::preProcess()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 2
eloc 7
c 1
b 1
f 0
nc 2
nop 0
dl 0
loc 10
rs 9.4285
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