module_invoke() called too late

Created on 28 August 2010, over 14 years ago
Updated 7 August 2024, 8 months ago

This resolves an issue I had with module_invoke() being called too late. The query immediately preceding relies on the global $theme_key, which may not be set before the query is run, resulting in an empty block return value. This patch simply moves the module_invoke() call to before the query, ensuring that the $theme_key variable is set.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024