[dokuwiki] New PR: add mechanism to track current revision, and other code improvements

  • From: "ssahara" <wiki@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 23 Jan 2022 15:17:02 +0100 (CET)

Hi,

ssahara opened a new pull request at 
https://github.com/splitbrain/dokuwiki/pull/3607:

This PR fixes tick 3 and 4 in #3575
* For tick 4: `ChangeLog::traceCurrentRevision()` provides mechanism to track 
current revision number that is larger than last revision. 
* For tick 3: recovery mechanism added in 
`PageDiff::buildRevisionsNavigation()`. In case just created page, current rev 
number is used instead of rev1 (that is false) to build correct html of 
dropdown selector. blank drop dropdown selector is created for non-existing 
page.
* PageDiff, MediaDiff have properties $Rev1 and $Rev2, those are date object 
ChangeLog\RevisionInfo , instead of array $OldRevInfo and $NewRevInfo. likely 
prefix old and new was not good practice when choosing variable names. 


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

21a58f60-7c57-11ec-9cdd-bbe461b626ea


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

Other related posts:

  • » [dokuwiki] New PR: add mechanism to track current revision, and other code improvements - ssahara