Skip to content
Snippets Groups Projects
Commit c1e1e8b8 authored by lobo's avatar lobo
Browse files

CRM-12648

----------------------------------------
* CRM-12648: CiviCRM mailing (or other scheduled jobs) do not seem to fire when triggered via wget
  http://issues.civicrm.org/jira/browse/CRM-12648
parent f60bec74
Branches
Tags
No related merge requests found
......@@ -586,6 +586,16 @@ class CRM_Utils_System {
*/
static function authenticate($name, $password, $loadCMSBootstrap = FALSE, $realPath = NULL) {
$config = CRM_Core_Config::singleton();
// before we do any loading, lets start the session and write to it
// we typically call authenticate only when we need to bootstrap the CMS directly via Civi
// and hence bypass the normal CMS auth and bootstrap process
// typically done in cli and cron scripts
// CRM-12648
$session = CRM_Core_Session::singleton();
$session->set( 'civicrmInitSession', TRUE );
$dbDrupal = DB::connect($config->userFrameworkDSN);
return $config->userSystem->authenticate($name, $password, $loadCMSBootstrap, $realPath);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment