1 | <?php |
||
15 | class Utils { |
||
16 | |||
17 | /** |
||
18 | * Some hosts disable the OpenSSL extension and so cannot make outgoing HTTPS requests. |
||
19 | * This method sets the URL scheme to HTTP when HTTPS requests can't be made. |
||
20 | * |
||
21 | * @param String $url The url. |
||
22 | * @return String The url with the required URL scheme. |
||
23 | */ |
||
24 | public static function fix_url_for_bad_hosts( $url ) { |
||
38 | } |
||
39 |