Moved filter function back to filters.php, fix for non-installed ext-sql_patches