164ab5140SAndreas Gohr<?php 264ab5140SAndreas Gohr 364ab5140SAndreas Gohrnamespace dokuwiki\Action; 464ab5140SAndreas Gohr 5*ab583a1bSAndreas Gohr/** 6*ab583a1bSAndreas Gohr * Class Diff 7*ab583a1bSAndreas Gohr * 8*ab583a1bSAndreas Gohr * Show the differences between two revisions 9*ab583a1bSAndreas Gohr * 10*ab583a1bSAndreas Gohr * @package dokuwiki\Action 11*ab583a1bSAndreas Gohr */ 1264ab5140SAndreas Gohrclass Diff extends AbstractAction { 1364ab5140SAndreas Gohr 1464ab5140SAndreas Gohr /** @inheritdoc */ 1564ab5140SAndreas Gohr function minimumPermission() { 1664ab5140SAndreas Gohr return AUTH_READ; 1764ab5140SAndreas Gohr } 1864ab5140SAndreas Gohr 1964ab5140SAndreas Gohr public function preProcess() { 2064ab5140SAndreas Gohr global $INPUT; 2164ab5140SAndreas Gohr 2264ab5140SAndreas Gohr // store the selected diff type in cookie 2364ab5140SAndreas Gohr $difftype = $INPUT->str('difftype'); 2464ab5140SAndreas Gohr if(!empty($difftype)) { 2564ab5140SAndreas Gohr set_doku_pref('difftype', $difftype); 2664ab5140SAndreas Gohr } 2764ab5140SAndreas Gohr } 2864ab5140SAndreas Gohr 2964ab5140SAndreas Gohr} 30