From: philipp Date: Wed, 12 Dec 2012 14:18:41 +0000 (+0000) Subject: The OpenLayers image path is set now. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/mediawiki_extensions/wrmap.git/commitdiff_plain/453430290927384193bdbd8e1cbd5d01e0f11943?hp=8444200301fe5da9761145e073510c9541d0fedc 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 --- 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();