X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e744d4c82ca3e4ae49b98b00bf0e048dde0f43e0..refs/pull/118/head:/app/Http/Controllers/SettingController.php diff --git a/app/Http/Controllers/SettingController.php b/app/Http/Controllers/SettingController.php index 1791ccfac..61ce55fa9 100644 --- a/app/Http/Controllers/SettingController.php +++ b/app/Http/Controllers/SettingController.php @@ -15,7 +15,14 @@ class SettingController extends Controller { $this->checkPermission('settings-manage'); $this->setPageTitle('Settings'); - return view('settings/index'); + + // Get application version + $version = false; + if (function_exists('exec')) { + $version = exec('git describe --always --tags '); + } + + return view('settings/index', ['version' => $version]); } /**