Fix use of undefined constant in filter_api.php