aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2019-11-07 19:11:04 +0100
committern-peugnet <n.peugnet@free.fr>2019-11-07 19:11:04 +0100
commitd8032078c39edb42acb99a1de49283daba199d74 (patch)
tree1d68019948f62266c40b3c9e27ecd815455655e3 /app/view/templates
parent6eddd69843d78bf442324dd10c501b79bbaf89d1 (diff)
downloadwcms-d8032078c39edb42acb99a1de49283daba199d74.tar.gz
wcms-d8032078c39edb42acb99a1de49283daba199d74.zip
feat: don't include Sentry in front if undefined
Diffstat (limited to 'app/view/templates')
-rw-r--r--app/view/templates/layout.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php
index c249622..ef28748 100644
--- a/app/view/templates/layout.php
+++ b/app/view/templates/layout.php
@@ -17,6 +17,7 @@
if (!empty(Wcms\Config::interfacecss())) {
echo '<link rel="stylesheet" href="' . Wcms\Model::csspath() . Wcms\Config::interfacecss() . '">';
}
+ if (!empty(Wcms\Config::sentrydsn())) {
?>
<script>
const sentrydsn = '<?= Wcms\Config::sentrydsn() ?>';
@@ -25,6 +26,7 @@
const basepath = '<?= Wcms\Config::basepath() ?>';
</script>
<script src="<?= Wcms\Model::jspath() ?>sentry.bundle.js"></script>
+ <?php } ?>
</head>