<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2015
*/
/**
- * this file contains functions for synchronizing cms users with CiviCRM contacts
+ * This file contains functions for synchronizing cms users with CiviCRM contacts.
*/
require_once 'DB.php';
* This behavior is misplaced in the BAO layer, but we'll preserve it to avoid
* contract changes in the middle of the support cycle. In the next major
* release, we should remove & document it.
- *
- * @return void
- *
*/
public static function synchronize($is_interactive = TRUE) {
- //start of schronization code
$config = CRM_Core_Config::singleton();
// Build an array of rows from UF users table.
CRM_Core_Error::fatal('CMS user creation not supported for this framework');
}
- set_time_limit(300);
+ if (PHP_SAPI != 'cli') {
+ set_time_limit(300);
+ }
if ($config->userSystem->is_drupal == '1') {
$user = new StdClass();