From 323696fa1b447dd6f4b8c4c727b5cbdd3cc66a1a Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Thu, 16 May 2013 18:10:37 -0700 Subject: [PATCH] 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 --- CRM/Mailing/BAO/Mailing.php | 2 +- bin/cli.class.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 921ab621d1..eca2fd282b 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -2559,7 +2559,7 @@ SELECT $mailing.id as mailing_id * @return $report array content/component. * @access public */ - public static function getMailingContent(&$report, &$form, $isSMS = FALSE) { + static function getMailingContent(&$report, &$form, $isSMS = FALSE) { $htmlHeader = $textHeader = NULL; $htmlFooter = $textFooter = NULL; diff --git a/bin/cli.class.php b/bin/cli.class.php index e69d25fa88..9b6c4eb89a 100644 --- a/bin/cli.class.php +++ b/bin/cli.class.php @@ -208,8 +208,7 @@ class civicrm_cli { $class = 'CRM_Utils_System_' . $this->_config->userFramework; $cms = new $class(); - if (!CRM_Utils_System::loadBootstrap(array( - ), FALSE, FALSE, $civicrm_root)) { + if (!CRM_Utils_System::loadBootstrap(array(), FALSE, FALSE, $civicrm_root)) { $this->_log(ts("Failed to bootstrap CMS")); return FALSE; } -- 2.25.1