profil finis

This commit is contained in:
root
2022-03-31 10:44:01 +02:00
parent 3efdacbbb0
commit f6d5784ed6
4984 changed files with 323037 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?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';
}
}