Index: salesforce_api.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/salesforce/salesforce_api/salesforce_api.module,v
retrieving revision 1.2.2.50
diff -u -p -r1.2.2.50 salesforce_api.module
--- salesforce_api.module	14 Jul 2010 14:52:13 -0000	1.2.2.50
+++ salesforce_api.module	27 Sep 2010 14:23:01 -0000
@@ -9,9 +9,9 @@
 
 // Define default directory paths for the Toolkit and WSDL files.
 define('SALESFORCE_DIR', drupal_get_path('module', 'salesforce_api'));
-define('SALESFORCE_DIR_TOOLKIT', SALESFORCE_DIR .'/toolkit');
+define('SALESFORCE_DIR_TOOLKIT', function_exists('libraries_get_path') ? libraries_get_path('salesforce') : SALESFORCE_DIR .'/toolkit');
 define('SALESFORCE_DIR_SOAPCLIENT', SALESFORCE_DIR_TOOLKIT .'/soapclient');
-define('SALESFORCE_DIR_WSDL', SALESFORCE_DIR .'/wsdl');
+define('SALESFORCE_DIR_WSDL', SALESFORCE_DIR_TOOLKIT .'/wsdl');
 
 
 // Define Drupal paths for various parts of the Salesforce UI.
