? 434378_remove_mapping.patch
? openid_client_ax_fix_confusing_variable_name.patch
? openid_client_ax_hooks_instead_of_dependency.patch
Index: openid_client_ax.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openid_client_ax/openid_client_ax.module,v
retrieving revision 1.2.2.4
diff -u -p -r1.2.2.4 openid_client_ax.module
--- openid_client_ax.module	21 Apr 2009 12:36:05 -0000	1.2.2.4
+++ openid_client_ax.module	21 Apr 2009 16:03:31 -0000
@@ -43,12 +43,12 @@ function openid_client_ax_openid($op, $r
   if ($op == 'request' && variable_get('openid_client_ax_enabled', TRUE)) {
     $request[sprintf('openid.ns.%s', variable_get('openid_client_ax_alias', 'ax'))] = 'http://openid.net/srv/ax/1.0';
     $request[sprintf('openid.%s.mode', variable_get('openid_client_ax_alias', 'ax'))] = 'fetch_request';
-    $short_names = $mapping = array();
-    $mapping = module_invoke_all('openid_client_ax', 'get');
-    foreach ($mapping as $openid) {
-      $parts = explode('/', $openid);
+    $short_names = $attributes = array();
+    $attributes = module_invoke_all('openid_client_ax', 'get');
+    foreach ($attributes as $attrib_url) {
+      $parts = explode('/', $attrib_url);
       $short_names[] = $parts[count($parts) - 1];
-      $request[sprintf('openid.%s.type.'. $parts[count($parts) - 1], variable_get('openid_client_ax_alias', 'ax'))] = $openid;
+      $request[sprintf('openid.%s.type.'. $parts[count($parts) - 1], variable_get('openid_client_ax_alias', 'ax'))] = $attrib_url;
     }
     if (count($short_names) > 0) {
       $request[sprintf('openid.%s.if_available', variable_get('openid_client_ax_alias', 'ax'))] = implode(",", $short_names);
