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
85bb0cc2
Commit
85bb0cc2
authored
Mar 27, 2017
by
Dominik Hebeler
Browse files
Update MetaGerSearch.php
parent
f0ceda43
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/MetaGerSearch.php
View file @
85bb0cc2
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
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