summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-12-27 15:45:28 +0300
committerAndrew Dolgov <[email protected]>2010-12-27 15:45:28 +0300
commit32a5e3444dc0cfc1c8045586b4582494853a647c (patch)
tree669f9508610b20342579fe4a2f3613a1ae37ad2f /functions.php
parent86027a078d574b3b88b19c058fd9cb6925ee9ebc (diff)
rename USE_CURL_FOR_ICONS to USE_CURL
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/functions.php b/functions.php
index 4d8e632cb..84738ddb8 100644
--- a/functions.php
+++ b/functions.php
@@ -371,7 +371,7 @@
}
function fetch_file_contents($url, $type = false) {
- if (USE_CURL_FOR_ICONS) {
+ if (USE_CURL) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
@@ -435,7 +435,7 @@
$favicon_url = rewrite_relative_url($url, "/favicon.ico");
// Run a test to see if what we have attempted to get actually exists.
- if(USE_CURL_FOR_ICONS || url_validate($favicon_url)) {
+ if(USE_CURL || url_validate($favicon_url)) {
return $favicon_url;
} else {
return false;
@@ -755,7 +755,7 @@
$icon_url = substr($icon_url, 0, 250);
if ($icon_url && $orig_icon_url != $icon_url) {
- if (USE_CURL_FOR_ICONS || url_validate($icon_url)) {
+ if (USE_CURL || url_validate($icon_url)) {
db_query($link, "UPDATE ttrss_feeds SET icon_url = '$icon_url' WHERE id = '$feed'");
}
}