diff options
Diffstat (limited to 'app/fn')
-rw-r--r-- | app/fn/fn.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/fn/fn.php b/app/fn/fn.php index f462d2d..ccccfb9 100644 --- a/app/fn/fn.php +++ b/app/fn/fn.php @@ -72,11 +72,16 @@ function idclean(string $input) return $input; } +function isreportingerrors() +{ + return function_exists('Sentry\init') && !empty(Wcms\Config::sentrydsn()); +} + function getversion() { if(file_exists('VERSION')) { - $version = file_get_contents('VERSION'); + $version = trim(file_get_contents('VERSION')); } else { $version = 'unknown'; } |