| Conditions | 4 | 
| Paths | 2 | 
| Total Lines | 12 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 8 |     public function __construct() { | 
            ||
| 9 | global $REV;  | 
            ||
| 10 | global $INFO;  | 
            ||
| 11 | parent::__construct();  | 
            ||
| 12 | |||
| 13 |         if(!$INFO['ismanager'] || !$REV || !$INFO['writable']) { | 
            ||
| 14 |             throw new \RuntimeException('revert not available'); | 
            ||
| 15 | }  | 
            ||
| 16 | $this->params['rev'] = $REV;  | 
            ||
| 17 | $this->params['sectok'] = getSecurityToken();  | 
            ||
| 18 | $this->svg = DOKU_INC . 'lib/images/menu/06-revert_replay.svg';  | 
            ||
| 19 | }  | 
            ||
| 20 | |||
| 22 |