Skip to content
Snippets Groups Projects
Commit f124eab5 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

tips route now also returns english tips

parent 327e35e0
No related branches found
No related tags found
1 merge request!1479Development
...@@ -213,6 +213,9 @@ class MetaGerSearch extends Controller ...@@ -213,6 +213,9 @@ class MetaGerSearch extends Controller
} else { } else {
$tipserver = "https://quicktips.metager.de/1.1/tips.xml"; $tipserver = "https://quicktips.metager.de/1.1/tips.xml";
} }
if (LaravelLocalization::getCurrentLocale() == "en") {
$tipserver .= "?locale=en";
}
$tips_text = file_get_contents($tipserver); $tips_text = file_get_contents($tipserver);
$tips = []; $tips = [];
try { try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment