}
$config = CRM_Core_Config::singleton();
- $url = $config->userSystem->url($path, $query, $absolute, $fragment, $frontend, $forceBackend);
+ $url = $config->userSystem->url($path, $query, $absolute, $fragment, $frontend, $forceBackend, $htmlize);
if ($htmlize) {
$url = htmlentities($url);
* This link should be to the CMS front end (applies to WP & Joomla).
* @param bool $forceBackend
* This link should be to the CMS back end (applies to WP & Joomla).
+ * @param bool $htmlize
+ * Whether to encode special html characters such as &.
*
* @return string
*/
$absolute = FALSE,
$fragment = NULL,
$frontend = FALSE,
- $forceBackend = FALSE
+ $forceBackend = FALSE,
+ $htmlize = TRUE
) {
return NULL;
}
$absolute = FALSE,
$fragment = NULL,
$frontend = FALSE,
- $forceBackend = FALSE
+ $forceBackend = FALSE,
+ $htmlize = TRUE
) {
$query = html_entity_decode($query);
$absolute = FALSE,
$fragment = NULL,
$frontend = FALSE,
- $forceBackend = FALSE
+ $forceBackend = FALSE,
+ $htmlize = TRUE
) {
$config = CRM_Core_Config::singleton();
$script = 'index.php';
$absolute = FALSE,
$fragment = NULL,
$frontend = FALSE,
- $forceBackend = FALSE
+ $forceBackend = FALSE,
+ $htmlize = TRUE
) {
$config = CRM_Core_Config::singleton();
$separator = '&';
/**
* @inheritDoc
*/
- public function url($path = NULL, $query = NULL, $absolute = TRUE, $fragment = NULL) {
+ public function url($path = NULL, $query = NULL, $absolute = TRUE, $fragment = NULL, $frontend = FALSE, $forceBackend = FALSE, $htmlize = TRUE) {
if (isset(self::$ufClass)) {
$className = self::$ufClass;
$url = $className::url($path, $query, $absolute, $fragment);
$query = NULL,
$absolute = FALSE,
$fragment = NULL,
- $htmlize = TRUE,
$frontend = FALSE,
- $forceBackend = FALSE
+ $forceBackend = FALSE,
+ $htmlize = TRUE
) {
$config = CRM_Core_Config::singleton();
static $script = 'index.php';
$absolute = FALSE,
$fragment = NULL,
$frontend = FALSE,
- $forceBackend = FALSE
+ $forceBackend = FALSE,
+ $htmlize = TRUE
) {
$config = CRM_Core_Config::singleton();
$script = '';