From 840c055d5272454a0b935e4171639df26ddab67f Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 21 Jul 2023 15:55:32 -0700 Subject: [PATCH] Civi::url() - Rename (p) to (t) --- Civi.php | 2 +- Civi/Core/Url.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Civi.php b/Civi.php index 70afbdd396..1233dfbb53 100644 --- a/Civi.php +++ b/Civi.php @@ -265,7 +265,7 @@ class Civi { * - 'a': absolute (aka `setPreferFormat('absolute')`) * - 'r': relative (aka `setPreferFormat('relative')`) * - 'h': html (aka `setHtmlEscape(TRUE)`) - * - 'p': plain text (aka `setHtmlEscape(FALSE)`) + * - 't': text (aka `setHtmlEscape(FALSE)`) * - 's': ssl (aka `setSsl(TRUE)`) * FIXME: Should we have a flag for appending 'resCacheCode'? * @return \Civi\Core\Url diff --git a/Civi/Core/Url.php b/Civi/Core/Url.php index b14ca4ab56..5a4a081c3d 100644 --- a/Civi/Core/Url.php +++ b/Civi/Core/Url.php @@ -330,8 +330,8 @@ final class Url { $this->htmlEscape = TRUE; break; - // (p)lain text encoding - case 'p': + // (t)ext encoding (canonical URL form) + case 't': $this->htmlEscape = FALSE; break; -- 2.25.1