Merge pull request #3679 from yashodha/CRM-14951
[civicrm-core.git] / api / v3 / Website.php
index 36d5ebc4227402c730c6ed94809c99e80bbc6289..63cb1d6907b14dfe7497e213cea7f71d273e9042 100644 (file)
@@ -1,11 +1,10 @@
 <?php
-// $Id$
 
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  * @package CiviCRM_APIv3
  * @subpackage API_Website
  *
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * @version $Id: Website.php 2011-03-16 ErikHommel $
  */
 
-require_once 'CRM/Core/BAO/Website.php';
-
 /**
  *  Add an Website for a contact
  *
@@ -47,6 +44,8 @@ require_once 'CRM/Core/BAO/Website.php';
  * @example WebsiteCreate.php
  * {@example WebsiteCreate.php}
  *
+ * @param $params
+ *
  * @return array of newly created website property values.
  * @access public
  * @todo convert to using basic create - BAO function non-std
@@ -112,6 +111,6 @@ function civicrm_api3_website_delete($params) {
  * @access public
  */
 function civicrm_api3_website_get($params) {
-  return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
+  return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, TRUE, 'website');
 }