Merge pull request #14118 from eileenmcnaughton/no_fin_item
[civicrm-core.git] / tools / scripts / civimail-spooler / civimail-spooler.php
index 63bb5a83a5e90ff6aaff6c0eb63b3e62964a37ff..8c79fb8c796ecb69f7c6802725bf2f274b2398c7 100644 (file)
@@ -1,5 +1,6 @@
 <?php
-$options = getopt('bc:ht:'); if (isset($options['h'])) {
+$options = getopt('bc:ht:');
+if (isset($options['h'])) {
   print ("\nUsage: php civimail-spooler.php [-bh] [-c <config>] [-t <period>]\n");
   print ("   -b  Run this process continuously\n");
   print ("   -c  Path to CiviCRM civicrm.settings.php\n");
@@ -17,7 +18,7 @@ require_once "$config_file";
 require_once "CRM/Core/Config.php";
 ');
 
-$config = &CRM_Core_Config::singleton();
+$config = CRM_Core_Config::singleton();
 
 /* Temporary permissioning hack for now */
 
@@ -34,7 +35,6 @@ if (isset($options['b'])) {
          * process into the background and provide init.d scripts */
 
 
-
     CRM_Mailing_BAO_MailingJob::runJobs();
     sleep($config->mailerPeriod);
   }