Last modified: 2008-01-15 04:47:57 UTC
I propose a variable such as wgEnableAPI which would be set to "true" if api.php is installed and "false" if not. The name of the variable is not terribly important.
We might want to pass wgEnableWriteAPI in a similar fashion.
Fixed in r29757