From: Hypolite Petovan Date: Sat, 27 Jan 2018 21:31:49 +0000 (-0500) Subject: Remove references to library/openid X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=236616995b64728d2d5efc889e3f917e6b3c78f4;p=friendica.git Remove references to library/openid --- 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;