From 8e0c92e1d2ff4223fb7b2700561cf9532e605638 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 1 Jul 2020 10:07:06 -0400 Subject: [PATCH] Mark unused functions as deprecated and update doc link --- CRM/Utils/Check/Component/Env.php | 2 +- CRM/Utils/System.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/Check/Component/Env.php b/CRM/Utils/Check/Component/Env.php index 54c46df70b..cd10369d43 100644 --- a/CRM/Utils/Check/Component/Env.php +++ b/CRM/Utils/Check/Component/Env.php @@ -118,7 +118,7 @@ class CRM_Utils_Check_Component_Env extends CRM_Utils_Check_Component { $messages[] = new CRM_Utils_Check_Message( __FUNCTION__, ts('Timestamps reported by MySQL (eg "%2") and PHP (eg "%3" ) are mismatched.
Read more about this warning', [ - 1 => CRM_Utils_System::getWikiBaseURL() . 'checkMysqlTime', + 1 => CRM_Utils_System::docURL2('sysadmin/requirements/#mysql-time', TRUE), 2 => $sqlNow, 3 => $phpNow, ]), diff --git a/CRM/Utils/System.php b/CRM/Utils/System.php index fc775dab08..04eb8d3ad5 100644 --- a/CRM/Utils/System.php +++ b/CRM/Utils/System.php @@ -1073,6 +1073,7 @@ class CRM_Utils_System { * @return null|string */ public static function urlEncode($url) { + CRM_Core_Error::deprecatedFunctionWarning('urlEncode'); $items = parse_url($url); if ($items === FALSE) { return NULL; @@ -1578,6 +1579,7 @@ class CRM_Utils_System { * @return string */ public static function relativeURL($url) { + CRM_Core_Error::deprecatedFunctionWarning('url'); // check if url is relative, if so return immediately if (substr($url, 0, 4) != 'http') { return $url; @@ -1605,6 +1607,7 @@ class CRM_Utils_System { * @return string */ public static function absoluteURL($url, $removeLanguagePart = FALSE) { + CRM_Core_Error::deprecatedFunctionWarning('url'); // check if url is already absolute, if so return immediately if (substr($url, 0, 4) == 'http') { return $url; -- 2.25.1