vanillaforums/Garden — pull request #1765 by R-J (2014-01-09 10:18:45+00:00)
Title: Update class.searchmodel.php

The search term is added too late to the EventArguments array, so they cannot be accessed when you hook the "Search" event.
Just putting the line before the first FireEvent solves that issue.