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

total_match_count is used before core.search_get_posts_data event

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.0-RC5
    • 3.1.0-RC3
    • Events
    • None
    • PHP 5.5.10, MySQL 5.6.15 Chrome 37

      The core.search_get_posts_data event is provided to modify the SQL query before the posts data is retrieved but total_match_count is used (lines 557-564, 594, & 605) prior to the event dispatcher (line 699). If I modify the sql such that the number of results retrieved is affected, there is no way to modify the total results and pagination.

            nickvergessen Joas Schilling
            Blitze Blitze [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: