Fix #4943.
authorAndreas Neustifter <andreas.neustifter@gmail.com>
Sat, 28 Apr 2018 06:46:46 +0000 (06:46 +0000)
committerAndreas Neustifter <andreas.neustifter@gmail.com>
Sat, 28 Apr 2018 06:46:46 +0000 (06:46 +0000)
PR #4939 introduced a bug that only surfaces when using Network from extern.
Use proper self reference to fix that.

src/Util/Network.php

index f0338e0..c1ea6e3 100644 (file)
@@ -36,7 +36,7 @@ class Network
         */
        public static function fetchUrl($url, $binary = false, &$redirects = 0, $timeout = 0, $accept_content = null, $cookiejar = 0)
        {
-               $ret = fetchUrlFull($url, $binary, $redirects, $timeout, $accept_content, $cookiejar);
+               $ret = self::fetchUrlFull($url, $binary, $redirects, $timeout, $accept_content, $cookiejar);
 
                return $ret['body'];
        }