From 236616995b64728d2d5efc889e3f917e6b3c78f4 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 27 Jan 2018 16:31:49 -0500 Subject: [PATCH] Remove references to library/openid --- mod/openid.php | 3 +-- mod/settings.php | 1 - src/Model/User.php | 1 - src/Module/Login.php | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/mod/openid.php b/mod/openid.php index 5af209c13e..af7016c32b 100644 --- a/mod/openid.php +++ b/mod/openid.php @@ -2,14 +2,13 @@ /** * @file mod/openid.php */ + use Friendica\App; use Friendica\Core\Config; use Friendica\Core\L10n; use Friendica\Core\System; use Friendica\Database\DBM; -require_once('library/openid.php'); - function openid_content(App $a) { $noid = Config::get('system','no_openid'); diff --git a/mod/settings.php b/mod/settings.php index 2ea6d53343..cb052826f4 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -538,7 +538,6 @@ function settings_post(App $a) if ($openid != $a->user['openid'] || (strlen($openid) && (!strlen($openidserver)))) { if (Network::isUrlValid($openid)) { logger('updating openidserver'); - require_once 'library/openid.php'; $open_id_obj = new LightOpenID; $open_id_obj->identity = $openid; $openidserver = $open_id_obj->discover($open_id_obj->identity); diff --git a/src/Model/User.php b/src/Model/User.php index 4eba5112ad..c8409b5843 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -24,7 +24,6 @@ use Exception; require_once 'boot.php'; require_once 'include/dba.php'; require_once 'include/enotify.php'; -require_once 'library/openid.php'; require_once 'include/text.php'; /** * @brief This class handles User related functions diff --git a/src/Module/Login.php b/src/Module/Login.php index e080663d7f..ae7277329d 100644 --- a/src/Module/Login.php +++ b/src/Module/Login.php @@ -68,7 +68,6 @@ class Login extends BaseModule // Otherwise it's probably an openid. try { - require_once 'library/openid.php'; $openid = new \LightOpenID; $openid->identity = $openid_url; $_SESSION['openid'] = $openid_url; -- 2.39.5