Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jul 11, 2024
2 parents 3d5b1b6 + 5364838 commit 62f4b75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 8 additions & 6 deletions resources/views/licenses/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,14 @@
</strong>
</div>
<div class="col-md-9">
@if ($license->time_until_depreciated()->y > 0)
{{ $license->time_until_depreciated()->y }}
{{ trans('admin/hardware/form.years') }},
@endif
{{ $license->time_until_depreciated()->m }}
{{ trans('admin/hardware/form.months') }}
@if ($license->time_until_depreciated())
@if ($license->time_until_depreciated()->y > 0)
{{ $license->time_until_depreciated()->y }}
{{ trans('admin/hardware/form.years') }},
@endif
{{ $license->time_until_depreciated()->m }}
{{ trans('admin/hardware/form.months') }}
@endif
</div>
</div>
@endif
Expand Down
6 changes: 6 additions & 0 deletions upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ function url_get_contents ($Url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $Url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// If we're on windows, make sure we can load intermediate certificates in
// weird corporate environments.
// See: https://github.com/curl/curl/commit/2d6333101a71129a6a802eb93f84a5ac89e34479
if (PHP_OS == "WINNT"){
curl_setopt($ch, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA);
}
$output = curl_exec($ch);
curl_close($ch);
return $output;
Expand Down

0 comments on commit 62f4b75

Please sign in to comment.