Issue #2320537 by er.pushpinderrana: Fix syntax problems in core.api.php