diff options
author | fox <[email protected]> | 2020-12-16 11:06:48 +0000 |
---|---|---|
committer | Gogs <[email protected]> | 2020-12-16 11:06:48 +0000 |
commit | ef7e67936350fce7b29499d6917d2a577105c779 (patch) | |
tree | 2f0ea59f0fc41d2ffed49c78214de69ae6b54d76 /plugins/af_redditimgur/init.php | |
parent | b4b2ba99effc4c6f8465e907bf95b6c2f6452fdb (diff) | |
parent | 62da307ef147b32eb214edecf1541f8ce896a700 (diff) |
Merge branch 'feature/php8' of wn/tt-rss into master
Diffstat (limited to 'plugins/af_redditimgur/init.php')
-rwxr-xr-x | plugins/af_redditimgur/init.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index d3e91f383..7a395801d 100755 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -506,7 +506,7 @@ class Af_RedditImgur extends Plugin { } } - private function get_header($url, $useragent = SELF_USER_AGENT, $header) { + private function get_header($url, $header, $useragent = SELF_USER_AGENT) { $ret = false; if (function_exists("curl_init") && !defined("NO_CURL")) { @@ -526,11 +526,11 @@ class Af_RedditImgur extends Plugin { } private function get_content_type($url, $useragent = SELF_USER_AGENT) { - return $this->get_header($url, $useragent, CURLINFO_CONTENT_TYPE); + return $this->get_header($url, CURLINFO_CONTENT_TYPE, $useragent); } private function get_location($url, $useragent = SELF_USER_AGENT) { - return $this->get_header($url, $useragent, CURLINFO_EFFECTIVE_URL); + return $this->get_header($url, CURLINFO_EFFECTIVE_URL, $useragent); } /** |