- Patch #314870 by drewish: removed some code that accidentically got committed with api.php and that broke the tests.