Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-12104

Shadowtopics SQL used in core event should use the SQL builder

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.0-a3
    • 3.1.0-dev, 3.1.0-a2
    • Events, Viewing forums
    • None

      The recently aded core.event to viewforum.php to modify the SQL obtaining shadow topic data should be modified.

      Currently, the SQL is a string statement, and that string variable is what is passed to the core event.

      This SQL should be an SQL array that uses the SQL Select builder function, so that extensions using this event can have more flexibility in modifying the SQL statement, rather than having to rewrite the statement as a whole. This will also prevent potential conflicts if multiple extensions need to access and modify this events SQL statement.

      Currently, every SQL that is passed to a core event is an sql array, except for this one, which is a string...so this one is the odd man out.

            EXreaction EXreaction [X] (Inactive)
            VSE Matt Friedman [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: