self::hackStandalone($args);
$item = self::getItem($args);
return self::runItem($item);
- } else {
+ }
+ else {
// Symfony-based invocation path
require_once CIVICRM_SYMFONY_PATH . '/app/bootstrap.php.cache';
require_once CIVICRM_SYMFONY_PATH . '/app/AppKernel.php';
if (preg_match(':^text/html:', $response->headers->get('Content-Type'))) {
// let the CMS handle the trappings
return $response->getContent();
- } else {
+ }
+ else {
$response->send();
exit();
}
if (is_array($args)) {
// get the menu items
$path = implode('/', $args);
- } else {
+ }
+ else {
$path = $args;
}
$item = CRM_Core_Menu::get($path);