🤖 Rector and PHPCS fixes
[dokuwiki.git] / inc / Action / Show.php
blobc274e06e64fb04f2d09d8dfb382cf61928539944
1 <?php
3 /**
4 * Created by IntelliJ IDEA.
5 * User: andi
6 * Date: 2/10/17
7 * Time: 4:32 PM
8 */
10 namespace dokuwiki\Action;
12 use dokuwiki\Ui\PageView;
13 use dokuwiki\Ui;
15 /**
16 * Class Show
18 * The default action of showing a page
20 * @package dokuwiki\Action
22 class Show extends AbstractAction
24 /** @inheritdoc */
25 public function minimumPermission()
27 return AUTH_READ;
30 /** @inheritdoc */
31 public function preProcess()
33 global $ID;
34 unlock($ID);
37 /** @inheritdoc */
38 public function tplContent()
40 (new PageView())->show();