]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Mapstraction plugin uses Plugin::path()
authorEvan Prodromou <evan@status.net>
Thu, 3 Feb 2011 15:50:11 +0000 (10:50 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 3 Feb 2011 15:50:11 +0000 (10:50 -0500)
plugins/Mapstraction/MapstractionPlugin.php

index 020c0818ad20b055b778ad830c38ebf1616c3ca2..13c5e2205743f8a5e172e73375b7ff6722649d66 100644 (file)
@@ -129,7 +129,7 @@ class MapstractionPlugin extends Plugin
             break;
         case 'openlayers':
             // Use our included stripped & minified OpenLayers.
-            $action->script(common_path('plugins/Mapstraction/OpenLayers/OpenLayers.js'));
+            $action->script($this->path('OpenLayers/OpenLayers.js'));
             break;
         case 'yahoo':
             $action->script(sprintf('http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=%s',
@@ -145,13 +145,13 @@ class MapstractionPlugin extends Plugin
             //
             // Note that OpenLayers.js needs to be separate, or it won't
             // be able to find its UI images and styles.
-            $action->script(common_path('plugins/Mapstraction/usermap-mxn-openlayers.min.js'));
+            $action->script($this->path('usermap-mxn-openlayers.min.js'));
         } else {
             $action->script(sprintf('%s?(%s)',
-                                    common_path('plugins/Mapstraction/js/mxn.js'),
+                                    $this->path('js/mxn.js'),
                                     $this->provider));
 
-            $action->script(common_path('plugins/Mapstraction/usermap.js'));
+            $action->script($this->path('usermap.js'));
         }
 
         $action->inlineScript(sprintf('var _provider = "%s";', $this->provider));