Skip to content

Commit

Permalink
Issue #42 - remove old googlemap settings
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed Nov 24, 2013
1 parent b7c0364 commit 79736dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion modules_v3/googlemap/db_schema/db_schema_4_5.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
}

self::exec(
"DELETE FROM `##module_setting` WHERE module_name='googlemap' AND setting_name IN ('GM_PRE_POST_MODE_1', 'GM_PRE_POST_MODE_2', 'GM_PRE_POST_MODE_3', 'GM_PRE_POST_MODE_4', 'GM_PRE_POST_MODE_5', 'GM_PRE_POST_MODE_6', 'GM_PRE_POST_MODE_7', 'GM_PRE_POST_MODE_8', 'GM_PRE_POST_MODE_9', 'GM_PH_WHEEL', 'GM_PH_CONTROLS', 'GM_DISP_COUNT')"
"DELETE FROM `##module_setting` WHERE module_name='googlemap' AND setting_name IN (
'GM_API_KEY', 'GM_DEFAULT_TOP_VALUE', 'GM_DISP_COUNT', 'GM_MAX_NOF_LEVELS', 'GM_PH_CONTROLS', 'GM_PH_WHEEL', 'GM_PRE_POST_MODE_1', 'GM_PRE_POST_MODE_2', 'GM_PRE_POST_MODE_3', 'GM_PRE_POST_MODE_4', 'GM_PRE_POST_MODE_5', 'GM_PRE_POST_MODE_6', 'GM_PRE_POST_MODE_7', 'GM_PRE_POST_MODE_8', 'GM_PRE_POST_MODE_9')"
);

// Update the version to indicate success
Expand Down
5 changes: 1 addition & 4 deletions modules_v3/googlemap/defaultconfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

// Create GM tables, if not already present
try {
WT_DB::updateSchema(WT_ROOT.WT_MODULES_DIR.'/googlemap/db_schema/', 'GM_SCHEMA_VERSION', 4);
WT_DB::updateSchema(WT_ROOT.WT_MODULES_DIR.'/googlemap/db_schema/', 'GM_SCHEMA_VERSION', 5);
} catch (PDOException $ex) {
// The schema update scripts should never fail. If they do, there is no clean recovery.
die($ex);
Expand Down Expand Up @@ -60,9 +60,6 @@
global $GOOGLEMAP_PRECISION_5;
$GOOGLEMAP_PRECISION_5 = get_module_setting('googlemap', 'GM_PRECISION_5', '9'); // Max prcision level

global $GM_MAX_NOF_LEVELS;
$GM_MAX_NOF_LEVELS = get_module_setting('googlemap', 'GM_MAX_NOF_LEVELS', '4'); // Max nr of levels to use in Googlemap

global $GOOGLEMAP_COORD;
$GOOGLEMAP_COORD = get_module_setting('googlemap', 'GM_COORD', '0'); // Enable or disable Display Map Co-ordinates

Expand Down

0 comments on commit 79736dc

Please sign in to comment.