aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/plugins/acl/script.js
diff options
context:
space:
mode:
authorMichael Große <grosse@cosmocode.de>2018-05-23 14:22:59 +0200
committerMichael Große <grosse@cosmocode.de>2018-05-23 15:42:59 +0200
commit3af323c154c817d4974909d399c3a4a13fe9cd80 (patch)
tree9fa144c9dfe9186ec856755432ff96111f684838 /lib/plugins/acl/script.js
parentd95b544bdcb2d47ebab65c05ba9c9c159d758500 (diff)
downloaddokuwiki-3af323c154c817d4974909d399c3a4a13fe9cd80.tar.gz
dokuwiki-3af323c154c817d4974909d399c3a4a13fe9cd80.zip
fix: workaround premature metadata generation on page save 🐛
This fixes a bug where the creator of a new page was not saved to metadata. That could happen if a plugin calls pageinfo() in the IO_WIKIPAGE_WRITE event AFTER handler. This creates a new .meta file for the page with the page's mtime as the creation timestamp. That caused the if clause changed in this commit to evaluate as false and thus the creator key was not saved. This commit now also treats the page as newly created if the created date in the metadata to the file's current mtime.
Diffstat (limited to 'lib/plugins/acl/script.js')
0 files changed, 0 insertions, 0 deletions