Commit 3c499093 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Update MetaGerSearch.php

parent 6c9bfa94
......@@ -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) {
......
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