Commit 175f5636 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '245-confidential-issue' into 'development'

dict.cc nur für Suchen mit weniger als 3 Wörtern

Closes #245

See merge request !692
parents d616a8e8 99043fc4
......@@ -166,6 +166,7 @@ class MetaGerSearch extends Controller
$mquicktips = array_merge($mquicktips, $quicktips);
# Dict.cc Quicktip
if (count(explode(' ', $q)) < 3) {
$url = "http://www.dict.cc/metager.php?s=" . urlencode($q);
$decodedResponse = json_decode($this->get($url), true);
if ($decodedResponse["headline"] != "" && $decodedResponse["link"] != "") {
......@@ -181,6 +182,7 @@ class MetaGerSearch extends Controller
$mquicktips[] = $quicktip;
}
}
}
# wussten Sie schon
$file = storage_path() . "/app/public/tips.txt";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment