CRM-13313 - Payments - prevent fatal error when line-item has no price set
[civicrm-core.git] / extern / rest.php
index 52bcce4c93fc06ed4fb03e6a6431af1118b1106b..892ebff221b12fad60ad24fc96606c7f7eb582f4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.4                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2013                                |
  +--------------------------------------------------------------------+
@@ -29,15 +29,14 @@ 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();
 
-$rest->loadCMSBootstrap();
-
 if (isset($_GET['json']) && $_GET['json']) {
   header('Content-Type: text/javascript');
 }
 else {
   header('Content-Type: text/xml');
 }
-echo $rest->run();
+echo $rest->bootAndRun();