summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-10-08 20:23:32 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-10-08 20:23:32 -0400
commitd5cd794c01d0e3a7774e01051fa485a82897731d (patch)
treeb4e709146cd324a879b2916061ed5e06b0939f6b /lib
parent59616abd129009357bbef269fc1ce95525f62185 (diff)
split firstrun template from main template
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 ab80018d6..af2322ec3 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 );