aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-09 16:20:16 -0700
committerredmatrix <git@macgirvin.com>2016-06-09 16:20:16 -0700
commit0dcea87b9944c106bce3e9604c8facf58fa9225f (patch)
treec13e0d169f069c1ee007280ed191cb8c6176d411 /Zotlabs
parenta10f5e9e06a03789af8f08481409f0ac95059fed (diff)
downloadvolse-hubzilla-0dcea87b9944c106bce3e9604c8facf58fa9225f.tar.gz
volse-hubzilla-0dcea87b9944c106bce3e9604c8facf58fa9225f.tar.bz2
volse-hubzilla-0dcea87b9944c106bce3e9604c8facf58fa9225f.zip
namespace issue with openid reverse auth
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Rmagic.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Rmagic.php b/Zotlabs/Module/Rmagic.php
index bcdbf6c90..26b0c46a6 100644
--- a/Zotlabs/Module/Rmagic.php
+++ b/Zotlabs/Module/Rmagic.php
@@ -24,7 +24,7 @@ class Rmagic extends \Zotlabs\Web\Controller {
}
}
- function post() {
+ function post() {
$address = trim($_REQUEST['address']);
@@ -34,13 +34,13 @@ class Rmagic extends \Zotlabs\Web\Controller {
try {
require_once('library/openid/openid.php');
- $openid = new LightOpenID(z_root());
+ $openid = new \LightOpenID(z_root());
$openid->identity = $address;
$openid->returnUrl = z_root() . '/openid';
$openid->required = array('namePerson/friendly', 'namePerson');
$openid->optional = array('namePerson/first','media/image/aspect11','media/image/default');
goaway($openid->authUrl());
- } catch (Exception $e) {
+ } catch (\Exception $e) {
notice( t('We encountered a problem while logging in with the OpenID you provided. Please check the correct spelling of the ID.').'<br /><br >'. t('The error message was:').' '.$e->getMessage());
}
@@ -82,7 +82,7 @@ class Rmagic extends \Zotlabs\Web\Controller {
}
- function get() {
+ function get() {
$o = replace_macros(get_markup_template('rmagic.tpl'),array(
'$title' => t('Remote Authentication'),