Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
188b1db7
Commit
188b1db7
authored
Nov 30, 2016
by
Dominik Hebeler
Browse files
Update MetaGerSearch.php
parent
bd960395
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/MetaGerSearch.php
View file @
188b1db7
...
...
@@ -90,9 +90,9 @@ class MetaGerSearch extends Controller
# Wetter
try
{
if
(
App
::
isLocale
(
'en'
))
{
$url
=
"http://api.openweathermap.org/data/2.5/weather?type=
lik
e&units=metric&lang=en&q="
.
urlencode
(
$q
)
.
"&APPID="
.
getenv
(
"openweathermap"
);
$url
=
"http://api.openweathermap.org/data/2.5/weather?type=
accurat
e&units=metric&lang=en&q="
.
urlencode
(
$q
)
.
"&APPID="
.
getenv
(
"openweathermap"
);
}
else
{
$url
=
"http://api.openweathermap.org/data/2.5/weather?type=
lik
e&units=metric&lang=de&q="
.
urlencode
(
$q
)
.
"&APPID="
.
getenv
(
"openweathermap"
);
$url
=
"http://api.openweathermap.org/data/2.5/weather?type=
accurat
e&units=metric&lang=de&q="
.
urlencode
(
$q
)
.
"&APPID="
.
getenv
(
"openweathermap"
);
}
$result
=
json_decode
(
$this
->
get
(
$url
),
true
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment