diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-01-11 02:11:54 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-01-11 02:11:54 +0300 |
commit | 7dde0d019f6b6b51887843e6a1869671603cb367 (patch) | |
tree | 1f7ffa2e3b3557c7885032abf03660e4e706b05d /libraries/classes/Html | |
parent | 02e8588404ad50ed5cc123c46bb118b199258252 (diff) |
Fix `Generator::linkOrButton` issue after merge
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'libraries/classes/Html')
-rw-r--r-- | libraries/classes/Html/Generator.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/classes/Html/Generator.php b/libraries/classes/Html/Generator.php index 01b2e0de00..0e5667200f 100644 --- a/libraries/classes/Html/Generator.php +++ b/libraries/classes/Html/Generator.php @@ -1113,7 +1113,7 @@ class Generator ): string { $url = $urlPath; if (is_array($urlParams)) { - $url = $urlPath . Url::getCommon($urlParams, '?', false); + $url = $urlPath . Url::getCommon($urlParams, strpos($urlPath, '?') !== false ? '&' : '?', false); } $url_length = strlen($url); @@ -1180,7 +1180,7 @@ class Generator } else { $url = $urlPath; if (is_array($urlParams)) { - $url = $urlPath . Url::getCommon($urlParams); + $url = $urlPath . Url::getCommon($urlParams, strpos($urlPath, '?') !== false ? '&' : '?'); } } |