1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace dokuwiki\Action;
- use dokuwiki\Ui;
- /**
- * Class Source
- *
- * Show the source of a page
- *
- * @package dokuwiki\Action
- */
- class Source extends AbstractAction
- {
- /** @inheritdoc */
- public function minimumPermission()
- {
- return AUTH_READ;
- }
- /** @inheritdoc */
- public function preProcess()
- {
- global $TEXT;
- global $INFO;
- global $ID;
- global $REV;
- if ($INFO['exists']) {
- $TEXT = rawWiki($ID, $REV);
- }
- }
- /** @inheritdoc */
- public function tplContent()
- {
- (new Ui\Editor)->show();
- }
- }
|