diff options
author | TherealperO <110610509+TherealperO@users.noreply.github.com> | 2022-08-04 13:21:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 13:21:22 -0400 |
commit | 29baf676c1732c19ae46aedefdc7b8ce89a9eff5 (patch) | |
tree | 8e0a16dfaa68b716bae787b1747c75ae7c23dcf7 /inc/ChangeLog | |
parent | 3578bf969ba82be3add2b1a26ff544163a68aa7e (diff) | |
download | dokuwiki-29baf676c1732c19ae46aedefdc7b8ce89a9eff5.tar.gz dokuwiki-29baf676c1732c19ae46aedefdc7b8ce89a9eff5.zip |
Update RevisionInfo.php
Fix broken history for pages with dots in name
Diffstat (limited to 'inc/ChangeLog')
-rw-r--r-- | inc/ChangeLog/RevisionInfo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/ChangeLog/RevisionInfo.php b/inc/ChangeLog/RevisionInfo.php index fb515accc..40e265177 100644 --- a/inc/ChangeLog/RevisionInfo.php +++ b/inc/ChangeLog/RevisionInfo.php @@ -36,7 +36,7 @@ class RevisionInfo { if (is_array($info) && isset($info['id'])) { // define strategy context - $info['mode'] = strrpos($info['id'], '.') ? 'media' : 'page'; + $info['mode'] = $info['media'] ? 'media' : 'page'; } else { $info = [ 'mode' => 'page', |