From 78b93b792e5ca1254db0285efbbe30686120f8ca Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 9 Jul 2019 23:35:31 -0700 Subject: [PATCH] CRM_Utils_File::relativeDirectory() - Mark as deprecated Computation of a relative path requires some base. This implementation is problematic because it relies on an implicit base which was constructed problematically. Moreover, the function is not used anywhere in the known `universe`. --- CRM/Utils/File.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Utils/File.php b/CRM/Utils/File.php index 7eb974c6fd..000d9505d4 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -640,6 +640,10 @@ HTACCESS; * @param $directory * * @return string + * @deprecated + * Computation of a relative path requires some base. + * This implementation is problematic because it relies on an + * implicit base which was constructed problematically. */ public static function relativeDirectory($directory) { // Do nothing on windows -- 2.25.1