# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/mapstraction/mapstraction.module
--- contributions/modules/mapstraction/mapstraction.module Base (1.1.2.7.2.8)
+++ contributions/modules/mapstraction/mapstraction.module Locally Modified (Based On 1.1.2.7.2.8)
@@ -205,10 +217,15 @@
     $api_script = call_user_func_array($api['render'], array($settings, $provider, $mapid));
   }
     
+  $library_path =
+    module_exists('libraries')
+      ? libraries_get_path('mapstraction') . '/source'
+      : drupal_get_path('module', 'mapstraction') . '/mapstraction/source';
+
   // load mxn core and provivder specific JS. Not using parameter approach due to drupal_add_js()
-  drupal_add_js(drupal_get_path('module', 'mapstraction') . '/mapstraction/source/mxn.js');
-  drupal_add_js(drupal_get_path('module', 'mapstraction') . '/mapstraction/source/mxn.core.js');
-  drupal_add_js(drupal_get_path('module', 'mapstraction') . '/mapstraction/source/mxn.'. $provider .'.core.js');
\ No newline at end of file
+  drupal_add_js($library_path . '/mxn.js');
+  drupal_add_js($library_path . '/mxn.core.js');
+  drupal_add_js($library_path . '/mxn.'. $provider .'.core.js');
\ No newline at end of file
   drupal_add_js(drupal_get_path('module', 'mapstraction') . '/mapstraction.drupal.js');
 
   $map = array(
