X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FPage%2FUserDashboard.php;h=608f2cbff13fd8c1702bd3a11d903ebce1fc9eb0;hb=3cb25298dcfaebdf396395e2180747c5c4d71cf9;hp=42cf07fa6de9f9b2c3c27497f2ec84efacb1dd1a;hpb=e3a363809875b227257e2247d43ed96115817c65;p=civicrm-core.git diff --git a/CRM/Contribute/Page/UserDashboard.php b/CRM/Contribute/Page/UserDashboard.php index 42cf07fa6d..608f2cbff1 100644 --- a/CRM/Contribute/Page/UserDashboard.php +++ b/CRM/Contribute/Page/UserDashboard.php @@ -1,7 +1,7 @@ assign('honor', TRUE); } - - $recur = new CRM_Contribute_DAO_ContributionRecur(); + $recur = new CRM_Contribute_DAO_ContributionRecur(); $recur->contact_id = $this->_contactId; - $recur->is_test = 0; + $recur->is_test = 0; $recur->find(); $config = CRM_Core_Config::singleton(); @@ -145,15 +141,14 @@ class CRM_Contribute_Page_UserDashboard extends CRM_Contact_Page_View_UserDashBo } /** - * This function is the main function that is called when the page + * the main function that is called when the page * loads, it decides the which action has to be taken for the page. - * - * return null - * @access public */ - function run() { + public function run() { + $invoiceSettings = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME, 'contribution_invoice_settings'); + $invoicing = CRM_Utils_Array::value('invoicing', $invoiceSettings); + $this->assign('invoicing', $invoicing); parent::preProcess(); $this->listContribution(); } } -