diff options
Diffstat (limited to 'app/view/templates/layout.php')
-rw-r--r-- | app/view/templates/layout.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php index 85351d6..9259fda 100644 --- a/app/view/templates/layout.php +++ b/app/view/templates/layout.php @@ -17,7 +17,17 @@ if (!empty(Wcms\Config::interfacecss())) { echo '<link rel="stylesheet" href="' . Wcms\Model::csspath() . Wcms\Config::interfacecss() . '">'; } + if (isreportingerrors()) { ?> + <script> + const sentrydsn = '<?= Wcms\Config::sentrydsn() ?>'; + const version = '<?= getversion() ?>'; + const url = '<?= Wcms\Config::url() ?>'; + const basepath = '<?= Wcms\Config::basepath() ?>'; + </script> + <script src="https://browser.sentry-cdn.com/5.9.0/bundle.min.js"></script> + <script src="<?= Wcms\Model::jspath() ?>sentry.bundle.js"></script> + <?php } ?> </head> |