aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/ChangeLog
diff options
context:
space:
mode:
authorTherealperO <110610509+TherealperO@users.noreply.github.com>2022-08-04 13:21:22 -0400
committerGitHub <noreply@github.com>2022-08-04 13:21:22 -0400
commit29baf676c1732c19ae46aedefdc7b8ce89a9eff5 (patch)
tree8e0a16dfaa68b716bae787b1747c75ae7c23dcf7 /inc/ChangeLog
parent3578bf969ba82be3add2b1a26ff544163a68aa7e (diff)
downloaddokuwiki-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.php2
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',