Skip to content

Conversation

moka-dev
Copy link

feat: enforce validation before publishing & added dw2pdf replacements

  • Added an option to prevent publishing a page unless it has been approved. (action/banner.php)
  • Implemented a check to ensure a revision has not already been approved or published before committing to the database. This prevents duplicates, e.g., from an F5 refresh or browser back navigation. (helper/publish.php meta/Revision.php)
  • Added replacements for the DW2PDF plugin (action/dw2pdf.php):
    • @STATUS@ → draft / approved / published
    • @APPROVER@ → user who approved the draft
    • @APPROVALDATE@ → date of approval
    • @PUBLISHER@ → user who published the page
    • @PUBLISHDATE@ → date of publishing
    • @VERSION@ → draft / approved / published
    • @LATESTVERSION@ → latest published version
  • Updated translations and added support for French and Spanish.

feat: enforce validation before publishing & added dw2pdf replacements
- Added an option to prevent publishing a page unless it has been approved.  (action/banner.php)
- Implemented a check to ensure a revision has not already been approved or published before committing to the database. This prevents duplicates, e.g., from an F5 refresh or browser back navigation. (helper/publish.php meta/Revision.php)
- Added replacements for the DW2PDF plugin (action/dw2pdf.php):
  - `@STATUS@` → draft / approved / published
  - `@APPROVER@` → user who approved the draft
  - `@APPROVALDATE@` → date of approval
  - `@PUBLISHER@` → user who published the page
  - `@PUBLISHDATE@` → date of publishing
  - `@VERSION@` → draft / approved / published
  - `@LATESTVERSION@` → latest published version
- Updated translations and added support for French and Spanish.
@splitbrain
Copy link
Member

You messed up the lang directory. Check the diffs, there's now a lang/lang folder.

@moka-dev moka-dev closed this Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants