summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-10-09 10:48:57 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-10-09 10:48:57 -0400
commit16564c20d5e781f88764333b1832dcdb846cebc2 (patch)
treeef02745148e60a3dcb51296293157f2fe72c78b3 /lib
parent468fd8e90c4ecc2006d82a7f5ec52b03a8deb9c5 (diff)
still refactoring to make the firstrun page independent
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.php10
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 );