From 453430290927384193bdbd8e1cbd5d01e0f11943 Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 12 Dec 2012 14:18:41 +0000 Subject: [PATCH 1/1] The OpenLayers image path is set now. git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/extensions/wrmap@1232 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- wrmap.body.php | 3 ++- wrmap.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wrmap.body.php b/wrmap.body.php index 546a778..e0f7d2c 100644 --- a/wrmap.body.php +++ b/wrmap.body.php @@ -27,7 +27,8 @@ class WrMap { $parserOutput->addModules('ext.wrmap'); // Create
element where the map is placed in - $output = "
\n"; + global $wgExtensionAssetsPath; + $output = "
\n"; foreach ($sledruns as $sledrun) { $lat = $sledrun['position_latitude']; $lon = $sledrun['position_longitude']; diff --git a/wrmap.js b/wrmap.js index 7791453..f2e7fa1 100644 --- a/wrmap.js +++ b/wrmap.js @@ -1,5 +1,6 @@ function init_wrmap(i, jq_map) { jq_map = $(jq_map); + OpenLayers.ImgPath = jq_map.attr('data-img-path'); // e.g. "/mediawiki/extensions/wrmap/openlayers/img/" var jq_sledruns = jq_map.children(); jq_sledruns.detach(); -- 2.30.2