From 4521f98f407048364ec6c8abee2a83ce6f8d49a7 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 1 Jul 2020 09:33:57 -0400 Subject: [PATCH] Remove obsolete function formatWikiURL --- CRM/Case/XMLProcessor/Report.php | 3 --- CRM/Utils/System.php | 22 ---------------------- 2 files changed, 25 deletions(-) diff --git a/CRM/Case/XMLProcessor/Report.php b/CRM/Case/XMLProcessor/Report.php index 6479980996..4f4b7c6c20 100644 --- a/CRM/Case/XMLProcessor/Report.php +++ b/CRM/Case/XMLProcessor/Report.php @@ -538,9 +538,6 @@ WHERE a.id = %1 ) { $value = $this->redact($value); } - elseif (CRM_Utils_Array::value('type', $typeValue) == 'Link') { - $value = CRM_Utils_System::formatWikiURL($value); - } } //$typeValue $customGroup[] = array( diff --git a/CRM/Utils/System.php b/CRM/Utils/System.php index 11e9eb1710..fc775dab08 100644 --- a/CRM/Utils/System.php +++ b/CRM/Utils/System.php @@ -1065,28 +1065,6 @@ class CRM_Utils_System { return FALSE; } - /** - * Format wiki url. - * - * @param string $string - * @param bool $encode - * - * @return string - */ - public static function formatWikiURL($string, $encode = FALSE) { - $items = explode(' ', trim($string), 2); - if (count($items) == 2) { - $title = $items[1]; - } - else { - $title = $items[0]; - } - - // fix for CRM-4044 - $url = $encode ? self::urlEncode($items[0]) : $items[0]; - return "$title"; - } - /** * Encode url. * -- 2.25.1