summaryrefslogtreecommitdiff
path: root/modules_v3/googlemap
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-02-08 22:13:45 +0000
committerGreg Roach <fisharebest@gmail.com>2015-02-08 22:13:45 +0000
commit4c73b657df5c49edc934107458e2e1e6f97051dc (patch)
tree551b940837b3f93bba978e1b9a320e2a961e694e /modules_v3/googlemap
parent9c67e46e640e59659365bbfcd5d4caf97a7a90d8 (diff)
downloadwebtrees-4c73b657df5c49edc934107458e2e1e6f97051dc.tar.gz
webtrees-4c73b657df5c49edc934107458e2e1e6f97051dc.tar.bz2
webtrees-4c73b657df5c49edc934107458e2e1e6f97051dc.zip
Improve stack dump for error reporting
Diffstat (limited to 'modules_v3/googlemap')
-rw-r--r--modules_v3/googlemap/module.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/modules_v3/googlemap/module.php b/modules_v3/googlemap/module.php
index 1df225486e..40bdd4237e 100644
--- a/modules_v3/googlemap/module.php
+++ b/modules_v3/googlemap/module.php
@@ -3327,10 +3327,7 @@ class googlemap_WT_Module extends Module implements ModuleConfigInterface, Modul
$statement->execute(array($this->getHighestIndex() + 1, $placeid, $level, $_POST['NEW_PLACE_NAME'], $_POST['LONG_CONTROL'][3] . $_POST['NEW_PLACE_LONG'], $_POST['LATI_CONTROL'][3] . $_POST['NEW_PLACE_LATI'], $_POST['NEW_ZOOM_FACTOR'], $_POST['icon']));
}
- // autoclose window when update successful unless debug on
- if (!WT_DEBUG) {
- $controller->addInlineJavaScript('closePopupAndReloadParent();');
- }
+ $controller->addInlineJavaScript('closePopupAndReloadParent();');
echo "<div class=\"center\"><button onclick=\"closePopupAndReloadParent();return false;\">", I18N::translate('close'), "</button></div>";
exit;
}
@@ -3345,10 +3342,7 @@ class googlemap_WT_Module extends Module implements ModuleConfigInterface, Modul
$statement->execute(array($_POST['NEW_PLACE_NAME'], $_POST['LATI_CONTROL'][3] . $_POST['NEW_PLACE_LATI'], $_POST['LONG_CONTROL'][3] . $_POST['NEW_PLACE_LONG'], $_POST['NEW_ZOOM_FACTOR'], $_POST['icon'], $placeid));
}
- // autoclose window when update successful unless debug on
- if (!WT_DEBUG) {
- $controller->addInlineJavaScript('closePopupAndReloadParent();');
- }
+ $controller->addInlineJavaScript('closePopupAndReloadParent();');
echo "<div class=\"center\"><button onclick=\"closePopupAndReloadParent();return false;\">", I18N::translate('close'), "</button></div>";
exit;
}