diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-30 10:14:42 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-30 10:14:42 +0000 |
commit | ef1235cc0a97305216d8987e3bd8459d30cbe5df (patch) | |
tree | fb22189c3d715f210a97128e08b6bd5f8fa92ebd /modules/openid/openid.module | |
parent | cdbcbac8b0c626af1e5ce04a0cdf7853af764fef (diff) | |
download | brdo-ef1235cc0a97305216d8987e3bd8459d30cbe5df.tar.gz brdo-ef1235cc0a97305216d8987e3bd8459d30cbe5df.tar.bz2 |
#207863 by mikey_p, Pancho: use module_load_include() as intended
Diffstat (limited to 'modules/openid/openid.module')
-rw-r--r-- | modules/openid/openid.module | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/openid/openid.module b/modules/openid/openid.module index 259fc59b4..eb281d26d 100644 --- a/modules/openid/openid.module +++ b/modules/openid/openid.module @@ -151,7 +151,7 @@ function openid_login_validate($form, &$form_state) { * @param $return_to The endpoint to return to from the OpenID Provider */ function openid_begin($claimed_id, $return_to = '', $form_values = array()) { - include_once drupal_get_path('module', 'openid') .'/openid.inc'; + module_load_include('inc', 'openid'); $claimed_id = _openid_normalize($claimed_id); @@ -213,7 +213,7 @@ function openid_begin($claimed_id, $return_to = '', $form_values = array()) { * $response['status'] set to one of 'success', 'failed' or 'cancel'. */ function openid_complete($response) { - include_once drupal_get_path('module', 'openid') .'/openid.inc'; + module_load_include('inc', 'openid'); // Default to failed response $response['status'] = 'failed'; @@ -247,8 +247,8 @@ function openid_complete($response) { * URI, etc). */ function openid_discovery($claimed_id) { - include_once drupal_get_path('module', 'openid') .'/openid.inc'; - include_once drupal_get_path('module', 'openid') .'/xrds.inc'; + module_load_include('inc', 'openid'); + module_load_include('inc', 'openid', 'xrds'); $services = array(); @@ -318,7 +318,7 @@ function openid_discovery($claimed_id) { * @return $assoc_handle The association handle. */ function openid_association($op_endpoint) { - include_once drupal_get_path('module', 'openid') .'/openid.inc'; + module_load_include('inc', 'openid'); // Remove Old Associations: db_query("DELETE FROM {openid_association} WHERE created + expires_in < %d", time()); @@ -369,7 +369,7 @@ function openid_association($op_endpoint) { * @param $response Response values from the OpenID Provider. */ function openid_authentication($response) { - include_once drupal_get_path('module', 'openid') .'/openid.inc'; + module_load_include('inc', 'openid'); $identity = $response['openid.identity']; @@ -423,7 +423,7 @@ function openid_authentication($response) { } function openid_association_request($public) { - include_once drupal_get_path('module', 'openid') .'/openid.inc'; + module_load_include('inc', 'openid'); $request = array( 'openid.ns' => OPENID_NS_2_0, @@ -441,7 +441,7 @@ function openid_association_request($public) { } function openid_authentication_request($claimed_id, $identity, $return_to = '', $assoc_handle = '', $version = 2) { - include_once drupal_get_path('module', 'openid') .'/openid.inc'; + module_load_include('inc', 'openid'); $realm = ($return_to) ? $return_to : url('', array('absolute' => TRUE)); @@ -480,7 +480,7 @@ function openid_authentication_request($claimed_id, $identity, $return_to = '', * @return boolean */ function openid_verify_assertion($op_endpoint, $response) { - include_once drupal_get_path('module', 'openid') .'/openid.inc'; + module_load_include('inc', 'openid'); $valid = FALSE; |