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

Update MetaGerSearch.php

parent 6c9bfa94
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
......@@ -48,7 +48,8 @@ class MetaGerSearch extends Controller
public function quicktips(Request $request, MetaGer $metager)
{
$q = $request->input('q', '');
$mquicktips = [];
if(APP::getLocale() === "de"){
# Spruch
$spruecheFile = storage_path() . "/app/public/sprueche.txt";
......@@ -62,7 +63,7 @@ class MetaGerSearch extends Controller
# manuelle Quicktips:
$file = storage_path() . "/app/public/qtdata.csv";
$mquicktips = [];
if (file_exists($file) && $q !== '') {
$file = fopen($file, 'r');
while (($line = fgetcsv($file)) !== false) {
......
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