From d1f4f37536b3e3aead39ebbc1c748eed34996444 Mon Sep 17 00:00:00 2001 From: Xavier Dutoit Date: Thu, 25 Jul 2013 14:25:06 +0200 Subject: [PATCH] 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. --- extern/rest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/extern/rest.php b/extern/rest.php index 1e88ceea2a..842ddc5e85 100644 --- a/extern/rest.php +++ b/extern/rest.php @@ -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(); -- 2.25.1