mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-17 16:57:28 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
62f4b75156
|
@ -290,12 +290,14 @@
|
||||||
</strong>
|
</strong>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
@if ($license->time_until_depreciated()->y > 0)
|
@if ($license->time_until_depreciated())
|
||||||
{{ $license->time_until_depreciated()->y }}
|
@if ($license->time_until_depreciated()->y > 0)
|
||||||
{{ trans('admin/hardware/form.years') }},
|
{{ $license->time_until_depreciated()->y }}
|
||||||
@endif
|
{{ trans('admin/hardware/form.years') }},
|
||||||
{{ $license->time_until_depreciated()->m }}
|
@endif
|
||||||
{{ trans('admin/hardware/form.months') }}
|
{{ $license->time_until_depreciated()->m }}
|
||||||
|
{{ trans('admin/hardware/form.months') }}
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
|
@ -10,6 +10,12 @@ function url_get_contents ($Url) {
|
||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
curl_setopt($ch, CURLOPT_URL, $Url);
|
curl_setopt($ch, CURLOPT_URL, $Url);
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
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);
|
$output = curl_exec($ch);
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
return $output;
|
return $output;
|
||||||
|
|
Loading…
Reference in a new issue