%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/recepty.varak.net/inc/Menu/Item/
Upload File :
Create Path :
Current File : /www/varak.net/recepty.varak.net/inc/Menu/Item/Revert.php

<?php

namespace dokuwiki\Menu\Item;

/**
 * Class Revert
 *
 * Quick revert to the currently shown page revision
 */
class Revert extends AbstractItem {

    /** @inheritdoc */
    public function __construct() {
        global $REV;
        global $INFO;
        parent::__construct();

        if(!$REV || !$INFO['writable']) {
            throw new \RuntimeException('revert not available');
        }
        $this->params['rev'] = $REV;
        $this->params['sectok'] = getSecurityToken();
        $this->svg = DOKU_INC . 'lib/images/menu/06-revert_replay.svg';
    }

}

Zerion Mini Shell 1.0