diff --git a/inc/Ui/PageDiff.php b/inc/Ui/PageDiff.php index fe98d296cc..92aacb76a4 100644 --- a/inc/Ui/PageDiff.php +++ b/inc/Ui/PageDiff.php @@ -105,13 +105,14 @@ protected function handle() } // requested diff view type + $mode = ''; if ($INPUT->has('difftype')) { - $this->preference['difftype'] = $INPUT->str('difftype'); + $mode = $INPUT->str('difftype'); } else { // read preference from DokuWiki cookie. PageDiff only $mode = get_doku_pref('difftype', null); - if (isset($mode)) $this->preference['difftype'] = $mode; } + if(in_array($mode, ['inline','sidebyside'])) $this->preference['difftype'] = $mode; if (!$INPUT->has('rev') && !$INPUT->has('rev2')) { global $INFO, $REV; @@ -222,7 +223,7 @@ public function show() // display diff view table echo '
'; - echo ''; + echo '
'; //navigation and header switch ($this->preference['difftype']) {