Change error to notice if not installed with git
This commit is contained in:
parent
e180704dd1
commit
bcd69b4582
|
@ -135,7 +135,7 @@ class AppServiceProvider extends ServiceProvider
|
||||||
$branchname = $explodedstring[2]; //get the one that is always the branch name
|
$branchname = $explodedstring[2]; //get the one that is always the branch name
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$branchname = 'unknown';
|
$branchname = 'unknown';
|
||||||
Log::error($e);
|
Log::notice($e);
|
||||||
}
|
}
|
||||||
config(['BRANCHNAME' => $branchname]);
|
config(['BRANCHNAME' => $branchname]);
|
||||||
|
|
||||||
|
|
|
@ -442,7 +442,7 @@
|
||||||
href="{{ url('/') }}">{{ env('APP_NAME', 'Laravel') }}</a>.</strong>
|
href="{{ url('/') }}">{{ env('APP_NAME', 'Laravel') }}</a>.</strong>
|
||||||
All rights
|
All rights
|
||||||
reserved. Powered by <a href="https://controlpanel.gg">ControlPanel</a>.
|
reserved. Powered by <a href="https://controlpanel.gg">ControlPanel</a>.
|
||||||
@if (!str_contains(config('BRANCHNAME'), 'main'))
|
@if (!str_contains(config('BRANCHNAME'), 'main') && !str_contains(config('BRANCHNAME'), 'unknown'))
|
||||||
Version <b>{{ config('app')['version'] }} - {{ config('BRANCHNAME') }}</b>
|
Version <b>{{ config('app')['version'] }} - {{ config('BRANCHNAME') }}</b>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue