Commit d1f4f375 authored by xavier's avatar xavier

Start the session on rest.php, so it avoids impossible to find side effects....

Start the session on rest.php, so it avoids impossible to find side effects. Trust me, I lost hours on that one: civi needs a session.
parent 0c17cc2c
......@@ -29,6 +29,7 @@ require_once '../civicrm.config.php';
require_once 'CRM/Core/Config.php';
$config = CRM_Core_Config::singleton();
session_start();
require_once 'CRM/Utils/REST.php';
$rest = new CRM_Utils_REST();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment