Skip to content

Forum reply form: undefined $df/$tf when showing the original message #429

Closed

Description

@caseysoftware

Found on the dev-6.0.0 branch (local, at 9bd3a1e0) during the lib/ cleanup. It may be on master too: the same code is there.

modules/forums/post_message.php L134 formats the original post's date with $df . ' ' . $tf, but neither variable is set in that file. Every reply page logs two "Undefined variable" warnings, and the date is formatted with an empty format.

Fix: set $df = $AppUI->getPref('SHDATEFORMAT'); $tf = $AppUI->getPref('TIMEFORMAT'); near the top, as the other forum views do.

Activity

  1. added
    php
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 21, 2026
    e6e2d70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    module:forumsphp

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions