summaryrefslogtreecommitdiffstats
path: root/examples/consumer/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/consumer/common.php')
-rw-r--r--examples/consumer/common.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/consumer/common.php b/examples/consumer/common.php
index 5e63fce..67f4273 100644
--- a/examples/consumer/common.php
+++ b/examples/consumer/common.php
@@ -58,8 +58,9 @@ function &getStore() {
" Please check the effective permissions.";
exit(0);
}
+ $r = new Auth_OpenID_FileStore($store_path);
- return new Auth_OpenID_FileStore($store_path);
+ return $r;
}
function &getConsumer() {
@@ -68,7 +69,8 @@ function &getConsumer() {
* earlier.
*/
$store = getStore();
- return new Auth_OpenID_Consumer($store);
+ $r = new Auth_OpenID_Consumer($store);
+ return $r;
}
function getScheme() {