]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/SettingController.php
Added initial translation into German (formal)
[bookstack] / app / Http / Controllers / SettingController.php
index 61ce55fa9405921c65cd5684c33fb4b42cb9d0d1..65135eda3816079eea164c229acd89d9e57fe9ad 100644 (file)
@@ -17,10 +17,7 @@ class SettingController extends Controller
         $this->setPageTitle('Settings');
 
         // Get application version
-        $version = false;
-        if (function_exists('exec')) {
-            $version = exec('git describe --always --tags ');
-        }
+        $version = trim(file_get_contents(base_path('version')));
 
         return view('settings/index', ['version' => $version]);
     }