aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2024-02-09 12:57:14 +0100
committerAndreas Gohr <andi@splitbrain.org>2024-02-09 12:59:31 +0100
commit1418a776f1a5512577c7584cf220836501c58db0 (patch)
tree8e801db07943584cfb73d11a35270886db82ca91
parentd602927bd9847b12f5f45e64b3defe852999009e (diff)
downloaddokuwiki-1418a776f1a5512577c7584cf220836501c58db0.tar.gz
dokuwiki-1418a776f1a5512577c7584cf220836501c58db0.zip
API: legacy compatibility fix
wiki.getAllPages and dokuwiki.getPagelist differed in how the last modification timestamp was communicated. This should fix splitbrain/dokuwiki-plugin-sync#70
-rw-r--r--inc/Remote/LegacyApiCore.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/Remote/LegacyApiCore.php b/inc/Remote/LegacyApiCore.php
index 7b9b7211a..4b679dea9 100644
--- a/inc/Remote/LegacyApiCore.php
+++ b/inc/Remote/LegacyApiCore.php
@@ -203,7 +203,7 @@ class LegacyApiCore extends ApiCore
'perms' => $page->permission,
'size' => $page->size,
'rev' => $page->revision,
- 'lastModified' => $this->toDate($page->revision),
+ 'mtime' => $page->revision,
'hash' => $page->hash,
];