summaryrefslogtreecommitdiffstats
path: root/examples/detect.php
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2006-02-13 23:11:46 +0000
committertailor <cygnus@janrain.com>2006-02-13 23:11:46 +0000
commit693dd2a6bfc58900091d30824606605bbacd752b (patch)
tree2fe241801cc850a3d91823065fcd55443e337624 /examples/detect.php
parentd70c1a96596a5946f054e4ef90fb3376d0521897 (diff)
downloadphp-openid-693dd2a6bfc58900091d30824606605bbacd752b.zip
php-openid-693dd2a6bfc58900091d30824606605bbacd752b.tar.gz
php-openid-693dd2a6bfc58900091d30824606605bbacd752b.tar.bz2
[project @ Fixed detect script to use proper getHTTPFetcher call]
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 c484e58..77eb7e2 100644
--- a/examples/detect.php
+++ b/examples/detect.php
@@ -359,7 +359,7 @@ function detect_stores($r, &$out)
function detect_fetcher($r, &$out)
{
$out .= $r->h2('HTTP Fetching');
- require_once "Auth/OpenID/Consumer/Fetchers.php";
+ require_once "Auth/OpenID.php";
if (Auth_OpenID_CURL_PRESENT) {
// XXX: actually fetch a URL.
$out .= $r->p('This PHP installation has support for libcurl. Good.');
@@ -373,7 +373,7 @@ function detect_fetcher($r, &$out)
'for PHP.');
}
$ok = true;
- $fetcher = Auth_OpenID_getHTTPFetcher();
+ $fetcher = Auth_OpenID::getHTTPFetcher();
$fetch_url = 'http://www.openidenabled.com/resources/php-fetch-test';
$expected_url = $fetch_url . '.txt';
$result = $fetcher->get($fetch_url);