Merge pull request #8762 from eileenmcnaughton/xml
[civicrm-core.git] / CRM / Contribute / Task.php
index b48240fc85111d14cbed2af464fbe742d6f09b53..25edbc0c9a99c332cc068026bc34ba84ea131206 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015                                |
+ | Copyright CiviCRM LLC (c) 2004-2016                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2015
+ * @copyright CiviCRM LLC (c) 2004-2016
  */
 
 /**
@@ -82,7 +82,7 @@ class CRM_Contribute_Task {
           'result' => FALSE,
         ),
         4 => array(
-          'title' => ts('Batch update contributions via profile'),
+          'title' => ts('Update multiple contributions'),
           'class' => array(
             'CRM_Contribute_Form_Task_PickProfile',
             'CRM_Contribute_Form_Task_Batch',
@@ -126,7 +126,7 @@ class CRM_Contribute_Task {
       }
 
       // remove action "Invoices - print or email"
-      $invoiceSettings = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME, 'contribution_invoice_settings');
+      $invoiceSettings = Civi::settings()->get('contribution_invoice_settings');
       $invoicing = CRM_Utils_Array::value('invoicing', $invoiceSettings);
       if (!$invoicing) {
         unset(self::$_tasks[9]);