diff --git a/system/Helpers/form_helper.php b/system/Helpers/form_helper.php index 1706147b3b41..61a0872a6084 100644 --- a/system/Helpers/form_helper.php +++ b/system/Helpers/form_helper.php @@ -58,12 +58,10 @@ function form_open(string $action = '', $attributes = [], array $hidden = []): s // If no action is provided then set to the current url if ( ! $action) { - helper('url'); $action = current_url(true); } // If an action is not a full URL then turn it into one elseif (strpos($action, '://') === false) { - helper('url'); $action = site_url($action); } diff --git a/system/View/Plugins.php b/system/View/Plugins.php index 80eec7af5b6b..cf189a288845 100644 --- a/system/View/Plugins.php +++ b/system/View/Plugins.php @@ -45,12 +45,6 @@ class Plugins */ public static function currentURL(array $params = []) { - if ( ! function_exists('current_url')) - // can't unit test this since it is loaded in CIUnitTestCase setup - // @codeCoverageIgnoreStart - helper('url'); - // @codeCoverageIgnoreEnd - return current_url(); } @@ -63,12 +57,6 @@ public static function currentURL(array $params = []) */ public static function previousURL(array $params = []) { - if ( ! function_exists('previous_url')) - // can't unit test this since it is loaded in CIUnitTestCase setup - // @codeCoverageIgnoreStart - helper('url'); - // @codeCoverageIgnoreEnd - return previous_url(); } @@ -81,12 +69,6 @@ public static function previousURL(array $params = []) */ public static function mailto(array $params = []) { - if ( ! function_exists('mailto')) - // can't unit test this since it is loaded in CIUnitTestCase setup - // @codeCoverageIgnoreStart - helper('url'); - // @codeCoverageIgnoreEnd - $email = $params['email'] ?? ''; $title = $params['title'] ?? ''; $attrs = $params['attributes'] ?? ''; @@ -103,12 +85,6 @@ public static function mailto(array $params = []) */ public static function safeMailto(array $params = []) { - if ( ! function_exists('safe_mailto')) - // can't unit test this since it is loaded in CIUnitTestCase setup - // @codeCoverageIgnoreStart - helper('url'); - // @codeCoverageIgnoreEnd - $email = $params['email'] ?? ''; $title = $params['title'] ?? ''; $attrs = $params['attributes'] ?? '';