<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| 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$
*
*/
/**
* This is some kind of special-purpose router/front-controller for the various profile URLs.
*
- * @param $args array this array contains the arguments of the url
+ * @param array $args
+ * this array contains the arguments of the url.
*
* @return string|void
- * @static
- * @access public
*/
- function run($args = NULL) {
+ public function run($args = NULL) {
if ($args[1] !== 'profile') {
- return;
+ return NULL;
}
$secondArg = CRM_Utils_Array::value(2, $args, '');
$profileGID = CRM_Utils_Request::retrieve('gid', 'Integer', $controller, TRUE);
}
-
// make sure that this profile enables mapping
// CRM-8609
- $isMap =
- CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFGroup', $profileGID, 'is_map');
+ $isMap = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFGroup', $profileGID, 'is_map');
if (!$isMap) {
CRM_Core_Error::statusBounce(ts('This profile does not have the map feature turned on.'));
}
}
CRM_Utils_System::permissionDenied();
- return;
}
}