From 43a6937f729b22cf320ed51ec0f455e73fe0900e Mon Sep 17 00:00:00 2001 From: Fredrick Peter Date: Wed, 11 Oct 2023 18:16:48 +0100 Subject: [PATCH] Resolve Conflicts with Other Frameworks --- src/helpers.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers.php b/src/helpers.php index 5397239..f4e8e0c 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -20,7 +20,7 @@ function form($attribute = null) } } -if (! function_exists('old')) { +if (! AppIsNotCorePHP() && ! function_exists('old')) { /** * Return previously entered value @@ -76,7 +76,7 @@ function config_form(?bool $error_type = false, ?bool $csrf_token = true, $reque } -if (! function_exists('csrf_token')) { +if (! AppIsNotCorePHP() && ! function_exists('csrf_token')) { /** * Get Csrf Token @@ -90,7 +90,7 @@ function csrf_token() } -if (! function_exists('csrf')) { +if (! AppIsNotCorePHP() && ! function_exists('csrf')) { /** * Generate Input for Csrf Token