X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/9135a85de4eef32a91c7a3ee0aa405ed454e5a4c..refs/pull/5676/head:/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');