Change error to notice if not installed with git
This commit is contained in:
parent
e180704dd1
commit
bcd69b4582
2 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ class AppServiceProvider extends ServiceProvider
|
|||
$branchname = $explodedstring[2]; //get the one that is always the branch name
|
||||
} catch (Exception $e) {
|
||||
$branchname = 'unknown';
|
||||
Log::error($e);
|
||||
Log::notice($e);
|
||||
}
|
||||
config(['BRANCHNAME' => $branchname]);
|
||||
|
||||
|
|
|
@ -442,7 +442,7 @@
|
|||
href="{{ url('/') }}">{{ env('APP_NAME', 'Laravel') }}</a>.</strong>
|
||||
All rights
|
||||
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>
|
||||
@endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue