diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-11-15 19:42:10 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-11-15 19:42:10 +0100 |
commit | 7741585fd4658428a8bd9e345604ab297fa281dd (patch) | |
tree | 927fb050133f5f5a57b7bd80d724fde8394eade9 /app/view | |
parent | dc041bbd71d1b9d6cfe189f2449a9ee0e9063708 (diff) | |
parent | 5c0035fe37cdec5f7927c3213365285a7fd4d51b (diff) | |
download | wcms-7741585fd4658428a8bd9e345604ab297fa281dd.tar.gz wcms-7741585fd4658428a8bd9e345604ab297fa281dd.zip |
Merge branch 'integrate-sentry-sdk' of https://github.com/n-peugnet/wcms into n-peugnet-integrate-sentry-sdk
Diffstat (limited to 'app/view')
-rw-r--r-- | app/view/templates/home.php | 4 | ||||
-rw-r--r-- | app/view/templates/layout.php | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 9758c95..01bc0e4 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -173,10 +173,10 @@ <?php $this->insert('footer', ['footer' => $footer]) ?> - <?php } ?> + <script src="<?= Wcms\Model::jspath() ?>home.bundle.js"></script> + <?php } ?> - <script src="<?= Wcms\Model::jspath() ?>home.bundle.js"></script> </body> 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> |