Do not "pollute" global namespace with LightOpenID symbol

This commit is contained in:
Sandro Santilli 2018-01-16 13:11:38 +01:00
parent 6bc096b150
commit 032c87d718

View file

@ -6,7 +6,6 @@ use Friendica\BaseModule;
use Friendica\Core\Config; use Friendica\Core\Config;
use Friendica\Database\DBM; use Friendica\Database\DBM;
use Friendica\Model\User; use Friendica\Model\User;
use LightOpenID;
use dba; use dba;
require_once 'boot.php'; require_once 'boot.php';
@ -66,7 +65,7 @@ class Login extends BaseModule
// Otherwise it's probably an openid. // Otherwise it's probably an openid.
try { try {
require_once 'library/openid.php'; require_once 'library/openid.php';
$openid = new LightOpenID; $openid = new \LightOpenID;
$openid->identity = $openid_url; $openid->identity = $openid_url;
$_SESSION['openid'] = $openid_url; $_SESSION['openid'] = $openid_url;
$_SESSION['remember'] = $_POST['remember']; $_SESSION['remember'] = $_POST['remember'];