From afc7142250dc02654a53a7222abe88df964d58f4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 28 Feb 2021 10:12:57 +0300 Subject: move all $fetch globals to UrlHelper --- include/functions.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/functions.php b/include/functions.php index 2db553d9d..d4505ac24 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4,12 +4,12 @@ define('LABEL_BASE_INDEX', -1024); define('PLUGIN_FEED_BASE_INDEX', -128); - $fetch_last_error = false; - $fetch_last_error_code = false; - $fetch_last_content_type = false; - $fetch_last_error_content = false; // curl only for the time being - $fetch_effective_url = false; - $fetch_curl_used = false; + UrlHelper::$fetch_last_error = false; + UrlHelper::$fetch_last_error_code = false; + UrlHelper::$fetch_last_content_type = false; + UrlHelper::$fetch_last_error_content = false; // curl only for the time being + UrlHelper::$fetch_effective_url = false; + UrlHelper::$fetch_curl_used = false; if (version_compare(PHP_VERSION, '8.0.0', '<')) { libxml_disable_entity_loader(true); -- cgit v1.2.3