Skip to content

Commit 7564ffb

Browse files
committed
MapQuest API key in config Part2 #113
1 parent d54c3a4 commit 7564ffb

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

admin/admin_config.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149

150150
// On post admin form
151151
$conf['osm_conf'] = array(
152-
'right_panel' => array(
152+
'right_panel' => array(
153153
'enabled' => get_boolean($_POST['osm_right_panel']),
154154
'add_before' => $_POST['osm_add_before'],
155155
'height' => $_POST['osm_height'],
@@ -158,7 +158,7 @@
158158
'linkcss' => $_POST['osm_right_linkcss'],
159159
'showosm' => get_boolean($_POST['osm_showosm']),
160160
),
161-
'left_menu' => array(
161+
'left_menu' => array(
162162
'enabled' => get_boolean($_POST['osm_left_menu']),
163163
'link' => $_POST['osm_left_link'],
164164
'popup' => $_POST['osm_left_popup'],
@@ -178,7 +178,7 @@
178178
'width' => $_POST['osm_cat_width'],
179179
'index' => $_POST['osm_cat_index'],
180180
),
181-
'main_menu' => array(
181+
'main_menu' => array(
182182
'enabled' => get_boolean($_POST['osm_main_menu']),
183183
'height' => $_POST['osm_menu_height'],
184184
),
@@ -190,14 +190,15 @@
190190
'global_height' => $_POST['osm_batch_global_height'],
191191
'unit_height' => $_POST['osm_batch_unit_height'],
192192
),
193-
'map' => array(
193+
'map' => array(
194194
'baselayer' => $_POST['osm_baselayer'],
195195
'custombaselayer' => $_POST['osm_custombaselayer'],
196196
'custombaselayerurl' => $_POST['osm_custombaselayerurl'],
197197
'noworldwarp' => get_boolean($_POST['osm_noworldwarp']),
198198
'attrleaflet' => get_boolean($_POST['osm_attrleaflet']),
199199
'attrimagery' => get_boolean($_POST['osm_attrimagery']),
200200
'attrplugin' => get_boolean($_POST['osm_attrplugin']),
201+
'mapquestapi' => $_POST['osm_mapquestapi']),
201202
),
202203
'pin' => array(
203204
'pin' => $_POST['osm_pin'],

admin/admin_config.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Refer to the <a href="https://github.com/xbgmsharp/piwigo-openstreetmap/wiki" ta
233233
<fieldset>
234234
<li>
235235
<label>{'MAPQUEST_APIKEY'|@translate} : </label>
236-
<input type="text" value="{$map.mapquest_apikey}" name="osm_mapquest_apikey" id="osm_mapquest_apikey" size="40"/>
236+
<input type="text" value="{$map.mapquest_apikey}" name="osm_mapquestapi" id="osm_mapquestapi" size="40"/>
237237
<br/><small>{'MAPQUEST_APIKEY_DESC'|@translate} Check out <a href="http://www.mapquestapi.com/" target="_blank">MapQuest API</a></small>
238238
</li>
239239
</fieldset>

0 commit comments

Comments
 (0)