X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/968bc8cdf354d9cbe29b88abdc747a7845031fab..refs/heads/development:/app/Exceptions/BookStackExceptionHandlerPage.php diff --git a/app/Exceptions/BookStackExceptionHandlerPage.php b/app/Exceptions/BookStackExceptionHandlerPage.php index 78f586ad0..a53733ac7 100644 --- a/app/Exceptions/BookStackExceptionHandlerPage.php +++ b/app/Exceptions/BookStackExceptionHandlerPage.php @@ -2,6 +2,7 @@ namespace BookStack\Exceptions; +use BookStack\App\AppVersion; use Illuminate\Contracts\Foundation\ExceptionRenderer; class BookStackExceptionHandlerPage implements ExceptionRenderer @@ -30,9 +31,7 @@ class BookStackExceptionHandlerPage implements ExceptionRenderer return [ 'PHP Version' => phpversion(), 'BookStack Version' => $this->safeReturn(function () { - $versionFile = base_path('version'); - - return trim(file_get_contents($versionFile)); + return AppVersion::get(); }, 'unknown'), 'Theme Configured' => $this->safeReturn(function () { return config('view.theme');