X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=extern%2Fwidget.php;h=b294d043a677d9e5d5d184cafa4e0524bae03b8d;hb=5ddd6889ec8898fee5d7964d0845d8ffbeeaceb5;hp=c4bb13ed03d424161f7d76ddc88fd013c8532e66;hpb=11df99209d13885aaf45a5c94612bdc65eb490ff;p=civicrm-core.git diff --git a/extern/widget.php b/extern/widget.php index c4bb13ed03..b294d043a6 100644 --- a/extern/widget.php +++ b/extern/widget.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -23,12 +23,12 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2014 + * @copyright CiviCRM LLC (c) 2004-2015 * $Id$ */ require_once '../civicrm.config.php'; @@ -38,9 +38,10 @@ $config = CRM_Core_Config::singleton(); $template = CRM_Core_Smarty::singleton(); require_once 'CRM/Utils/Request.php'; -$cpageId = CRM_Utils_Request::retrieve('cpageId', 'Positive', CRM_Core_DAO::$_nullObject); +$cpageId = CRM_Utils_Request::retrieve('cpageId', 'Positive', CRM_Core_DAO::$_nullObject); $widgetId = CRM_Utils_Request::retrieve('widgetId', 'Positive', CRM_Core_DAO::$_nullObject); -$format = CRM_Utils_Request::retrieve('format', 'Positive', CRM_Core_DAO::$_nullObject); +$format = CRM_Utils_Request::retrieve('format', 'Positive', CRM_Core_DAO::$_nullObject); +$includePending = CRM_Utils_Request::retrieve('includePending', 'Boolean', CRM_Core_DAO::$_nullObject); require_once 'CRM/Contribute/BAO/Widget.php'; @@ -49,7 +50,7 @@ if (isset($format)) { $jsonvar .= $cpageId; } -$data = CRM_Contribute_BAO_Widget::getContributionPageData($cpageId, $widgetId); +$data = CRM_Contribute_BAO_Widget::getContributionPageData($cpageId, $widgetId, $includePending); $output = ' var ' . $jsonvar . ' = ' . json_encode($data) . ';