summaryrefslogtreecommitdiffstats
path: root/examples/detect.php
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2006-08-15 21:22:12 +0000
committertailor <cygnus@janrain.com>2006-08-15 21:22:12 +0000
commit6f08a6797b05eed5291dae3617472717244d194c (patch)
treef0c90bd2686f4f4eeeba79227545c9f571f6bd33 /examples/detect.php
parentaf8628d2f6cd1588ff6926f5ed163ae6e3dd4704 (diff)
downloadphp-openid-6f08a6797b05eed5291dae3617472717244d194c.zip
php-openid-6f08a6797b05eed5291dae3617472717244d194c.tar.gz
php-openid-6f08a6797b05eed5291dae3617472717244d194c.tar.bz2
[project @ Moved curl fetcher detection code into Yadis]
Diffstat (limited to 'examples/detect.php')
-rw-r--r--examples/detect.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/detect.php b/examples/detect.php
index ea7ecdc..cc3a00c 100644
--- a/examples/detect.php
+++ b/examples/detect.php
@@ -382,7 +382,7 @@ function detect_xml($r, &$out)
function detect_fetcher($r, &$out)
{
$out .= $r->h2('HTTP Fetching');
- if (Auth_OpenID_CURL_PRESENT) {
+ if (Services_Yadis_Yadis::curlPresent()) {
// XXX: actually fetch a URL.
$out .= $r->p('This PHP installation has support for libcurl. Good.');
} else {
@@ -395,7 +395,7 @@ function detect_fetcher($r, &$out)
'for PHP.');
}
$ok = true;
- $fetcher = Auth_OpenID::getHTTPFetcher();
+ $fetcher = Services_Yadis_Yadis::getHTTPFetcher();
$fetch_url = 'http://www.openidenabled.com/resources/php-fetch-test';
$expected_url = $fetch_url . '.txt';
$result = $fetcher->get($fetch_url);