CRM-17212: Use pantheon detection to switch file session to storage
authorChris Burgess <chris@giantrobot.co.nz>
Sat, 12 Sep 2015 10:41:27 +0000 (22:41 +1200)
committerChris Burgess <chris@giantrobot.co.nz>
Sat, 12 Sep 2015 10:53:19 +0000 (22:53 +1200)
extern/authorizeIPN.php
extern/googleNotify.php
extern/ipn.php
extern/pxIPN.php
extern/rest.php
extern/soap.php

index 84765452a4002535092c239873c95594daabe7fa..65569d38f8584f0e166016d7334df93c36cdf4e0 100644 (file)
@@ -31,7 +31,9 @@
  * $Id$
  */
 
-ini_set('session.save_handler', 'files');
+if (defined('PANTHEON_ENVIRONMENT')) {
+  ini_set('session.save_handler', 'files');
+}
 session_start();
 
 require_once '../civicrm.config.php';
index 95d4acd969e332dd309ab80ea716359cca5d174f..46dda091887b5429fe1495e561a47992276c589b 100644 (file)
@@ -31,7 +31,7 @@
  * $Id$
  */
 
-if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) {
+if (defined('PANTHEON_ENVIRONMENT')) {
   ini_set('session.save_handler', 'files');
 }
 session_start();
index a7f56d10b1290b275c100913be820848e0af8d98..696e5773d8e78f3bb3a5fd2565484d27fb83975a 100644 (file)
@@ -31,7 +31,7 @@
  * $Id$
  */
 
-if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) {
+if (defined('PANTHEON_ENVIRONMENT')) {
   ini_set('session.save_handler', 'files');
 }
 session_start();
index e1d6f063be6677438d4d315b2e5035843ddd8b62..1c4ab281e8cf6ac6f5635063b271dc2eaf4538e7 100644 (file)
@@ -10,7 +10,7 @@
  * in creating this payment processor module
  */
 
-if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) {
+if (defined('PANTHEON_ENVIRONMENT')) {
   ini_set('session.save_handler', 'files');
 }
 session_start();
index b944dba5bc7be77c59fb84b23805298d6b9d16a3..601f1cd9800b326fd594026658bdba1ebbcb80d4 100644 (file)
@@ -28,7 +28,7 @@
 require_once '../civicrm.config.php';
 $config = CRM_Core_Config::singleton();
 
-if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) {
+if (defined('PANTHEON_ENVIRONMENT')) {
   ini_set('session.save_handler', 'files');
 }
 session_start();
index f50939a90637033428f7bc6997ee3b9104f06ef2..20d39f46c237bc6ab6f28f1743c730cb4dbfe7cd 100644 (file)
@@ -33,7 +33,7 @@ if (phpversion() == "5.2.2" &&
   $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents('php://input');
 }
 
-if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) {
+if (defined('PANTHEON_ENVIRONMENT')) {
   ini_set('session.save_handler', 'files');
 }
 session_start();