diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-10-09 18:48:57 +0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-10-09 18:48:57 +0400 |
commit | 16564c20d5e781f88764333b1832dcdb846cebc2 (patch) | |
tree | ef02745148e60a3dcb51296293157f2fe72c78b3 /lib | |
parent | 468fd8e90c4ecc2006d82a7f5ec52b03a8deb9c5 (diff) |
still refactoring to make the firstrun page independent
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/utils.php b/lib/utils.php index af2322ec3..ab80018d6 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -159,11 +159,11 @@ class Utils { //try to extract favicon from web page $absoluteUrl = \SimplePie_Misc::absolutize_url('/', $url); - $handle = \curl_init ( ); - \curl_setopt ( $handle, CURLOPT_URL, $absoluteUrl ); - \curl_setopt ( $handle, CURLOPT_RETURNTRANSFER, 1 ); - \curl_setopt ( $handle, CURLOPT_FOLLOWLOCATION, TRUE ); - \curl_setopt ( $handle, CURLOPT_MAXREDIRS, 10 ); + $handle = curl_init ( ); + curl_setopt ( $handle, CURLOPT_URL, $absoluteUrl ); + curl_setopt ( $handle, CURLOPT_RETURNTRANSFER, 1 ); + curl_setopt ( $handle, CURLOPT_FOLLOWLOCATION, TRUE ); + curl_setopt ( $handle, CURLOPT_MAXREDIRS, 10 ); if ( FALSE!==($page=curl_exec($handle)) ) { preg_match ( '/<[^>]*link[^>]*(rel=["\']icon["\']|rel=["\']shortcut icon["\']) .*href=["\']([^>]*)["\'].*>/iU', $page, $match ); |