[dokuwiki] New PR: fix: workaround premature metadata generation on page save 🐛

  • From: "micgro42" <wiki@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 23 May 2018 16:09:23 +0200 (CEST)

Hi,

micgro42 opened a new pull request at 
https://github.com/splitbrain/dokuwiki/pull/2401:

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's 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 is equal to the file's current mtime.

Please help us to review this pull request, so new contributors get feedback in 
a timely manner.

e44196e0-5e92-11e8-82ac-c308ca39e5c2


-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [dokuwiki] New PR: fix: workaround premature metadata generation on page save 🐛 - micgro42