commit 7d498ee0b55f47aabbc9219e34e00c7435a8ea67
Author: Chris Burgess <chris@giantrobot.co.nz>
Date:   Sat Jun 23 02:21:42 2012 +1200

    Issue #1092262. Corrected fix for libraries_get_path() fatal. What 46aa8256 should have done.

diff --git a/openid_selector.install b/openid_selector.install
index 829620a..65ab71f 100644
--- a/openid_selector.install
+++ b/openid_selector.install
@@ -9,23 +9,23 @@ define('JAVASCRIPT_OPENID_SELECTOR_VERSION', '1.3');
 define('JAVASCRIPT_OPENID_SELECTOR_DOWNLOAD', 'http://openid-selector.googlecode.com/files/openid-selector-1.3.zip');
 
 function openid_selector_get_javascript_version() {
-  if (!function_exists('libraries_get_path')) {
+  if (function_exists('libraries_get_path')) {
     $files = drupal_system_listing('\.module$', 'modules', 'name', 0);
     if (array_key_exists('libraries', $files)) {
       include_once $files['libraries']->filename;
     }
-  }
-  $library_path = libraries_get_path('openid-selector');  
-  if (!file_exists($library_path . '/js/openid-jquery.js')) {
-    return NULL;
-  }
-  else {
-    preg_match("/version\s*:\s*'([0-9a-z.-]+)'\s*,/i", file_get_contents($library_path . '/js/openid-jquery.js'), $version);
-    $version = $version[1];
-    if (!$version) {
-      $version = t('1.0 or 1.1');
+    $library_path = libraries_get_path('openid-selector');
+    if (!file_exists($library_path . '/js/openid-jquery.js')) {
+      return NULL;
+    }
+    else {
+      preg_match("/version\s*:\s*'([0-9a-z.-]+)'\s*,/i", file_get_contents($library_path . '/js/openid-jquery.js'), $version);
+      $version = $version[1];
+      if (!$version) {
+        $version = t('1.0 or 1.1');
+      }
+      return $version;
     }
-    return $version;
   }
 }
 
