]> BookStack Code Mirror - bookstack/blobdiff - app/Exceptions/BookStackExceptionHandlerPage.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / app / Exceptions / BookStackExceptionHandlerPage.php
index 78f586ad0c98d0f930a5c7f78882dbcfcdf5f614..a53733ac7eeaa629dd84a26b9722074d3d6a860e 100644 (file)
@@ -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');