aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Rmagic.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-10 10:45:09 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-10 10:45:09 +0200
commit9d5d3a946817c1b1a9dc18dead85bc989e820564 (patch)
tree259c9b03921c18212a86ea7d0fc8111cd3ce5930 /Zotlabs/Module/Rmagic.php
parent85e82e919e146454a8b3973ed4a2a69066b98aa3 (diff)
parentcf415a4312f3a926c3b080fb49042752441f23b4 (diff)
downloadvolse-hubzilla-9d5d3a946817c1b1a9dc18dead85bc989e820564.tar.gz
volse-hubzilla-9d5d3a946817c1b1a9dc18dead85bc989e820564.tar.bz2
volse-hubzilla-9d5d3a946817c1b1a9dc18dead85bc989e820564.zip
Merge branch 'dev' into sabre32
Diffstat (limited to 'Zotlabs/Module/Rmagic.php')
-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'),