1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:35:57 +00:00

move all $fetch globals to UrlHelper

This commit is contained in:
Andrew Dolgov
2021-02-28 10:12:57 +03:00
parent e2cbb54b2c
commit afc7142250
12 changed files with 83 additions and 107 deletions

View File

@@ -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);